Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions detect-cpu.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* program that prints the type of CPU it is running on and the
* number of cores it has.the program is written in C and uses
* the POSIX sysconf() function to get the number of cores.
*/
* the POSIX sysconf() function to get the number of cores.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/sysinfo.h>


// declare and define the function to get type of CPU
// declare and define the function to get number of cores
int get_cpu_type(void)
Expand Down