Search:

Type: Posts; User: gareth00

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,456

    size of char **

    Hello all. I am trying to determine the number of elements in a 2d character array. I am trying to print all my Linux environment variables to the screen without using the env program. This is the...
  2. Replies
    12
    Views
    1,699

    Thanks rob, I missed that other one. I'm still...

    Thanks rob, I missed that other one. I'm still getting these warning messages though. I assume it is because the formal parameters are type char **, and I am the actual parameter I am passing is...
  3. Replies
    12
    Views
    1,699

    Ok, more questions. I am getting the following...

    Ok, more questions. I am getting the following warnings:

    test.c: In function ‘main’:
    test.c:9: warning: incompatible implicit declaration of built-in function ‘malloc’
    test.c:10: warning:...
  4. Replies
    12
    Views
    1,699

    Thanks a lot, I got it! I spend all day on this...

    Thanks a lot, I got it! I spend all day on this stupid problem. I had to change a few things in your code so here is the working version if anyone else cares.


    #include <stdio.h>
    #include...
  5. Replies
    12
    Views
    1,699

    Thanks for the replies. I tried malloc() but the...

    Thanks for the replies. I tried malloc() but the problem still persists. Doodle, what you are saying makes sense, I am just having trouble implementing it correctly. I know I'm still doing...
  6. Replies
    12
    Views
    1,699

    Simple string question

    Here is my code:


    #include <stdio.h>
    #include <string.h>

    void sayHi(char *);

    int main()
    {
Results 1 to 6 of 6