Search:

Type: Posts; User: masongray

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,133

    Thank You, Hammer

    I'll post a result as soon as I can try it
  2. Replies
    2
    Views
    1,133

    need help on a collection of strings

    The following code accepts as parameters 1) a pointer to an array of long values and 2) an int containing the number of elements in that array. The code loops through each element in the array,...
  3. Replies
    15
    Views
    13,995

    Thanks very much - fflush is only defined for...

    Thanks very much - fflush is only defined for stdout, NOT stdin per ANSI. I didn't know that. Fortunately I am brand new and haven't posted before. And I won't again
  4. Replies
    15
    Views
    13,995

    Unfortunately, I don't have my compiler here - i...

    Unfortunately, I don't have my compiler here - i would insert

    fflush(stdin);

    before c=getchar();
    because getchar() reads the input stream and you may have a value other than 1 in the buffer.
  5. Thread: malloc

    by masongray
    Replies
    11
    Views
    2,162

    malloc returns a void pointer to the first...

    malloc returns a void pointer to the first address of the allocated memory space. since you know that you'll be holding chars, you should cast the void pointer as a char pointer. further, since you...
Results 1 to 5 of 5