Search:

Type: Posts; User: smoothdogg00

Search: Search took 0.00 seconds.

  1. Works great, thanks.

    Works great, thanks.
  2. It actually doesn't give errors, it gives a...

    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...
  3. Casting unsigned long division to a double?

    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...
  4. I need to access some information from all of the...

    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...
  5. Displaying Process Information From task_struct?

    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...
  6. Replies
    3
    Views
    2,528

    I'm using Cygwin and gcc as my compiler. ...

    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.
  7. Replies
    3
    Views
    2,528

    Accessing the 'home' directory path?

    How can I access the default home directory from a program, so that I can call chdir() on that directory?
  8. Replies
    3
    Views
    1,034

    EDIT: Thanks for your help.

    EDIT: Thanks for your help.
  9. Replies
    3
    Views
    1,034

    Simple array/pointer problem...

    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...
  10. Using sys/stat.h and listing directory contents in C...

    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"...
  11. Printing different representations of characters...

    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...
Results 1 to 11 of 12