Works great, thanks.
Type: Posts; User: smoothdogg00
Works great, thanks.
It actually doesn't give errors, it gives a warnings. I am doing this operation within a kernel module. One error is something like __divfi or something. Is there some problem with casting an...
If I have two unsigned long integers and I want to divide them and store the result as a double, how might this be accomplished? The following presents errors.
unsigned long x, y;
double...
I need to access some information from all of the processes of PID > 1024. Currently, I have used the /proc file-system to put together an array containing all of those process ID's. The code is as...
I have to somehow retrieve process information from task_struct and display it in in the terminal, like ps does. However, I may also have to add my own code to the sched.c and sched.h files, so I...
I'm using Cygwin and gcc as my compiler. Basically, I want to use the directory that the terminal starts in whenever a new one is loaded.
How can I access the default home directory from a program, so that I can call chdir() on that directory?
EDIT: Thanks for your help.
If I declare a character array and want to add an item to the array, without having it point to that item, for example:
Code:
char * arr[50];
char temp[255];
for(loop where temp is always...
Currently, I have a program that lists the contents of a directory. What I need to do (as I've sort of started) is to use the stat structure to print such things as date modified, etc. like the "ls"...
First let me start by saying I am new to C. My program needs to read in a character in binary(including non-printable characters) and then display the character in octal representation, like the...