Search:

Type: Posts; User: madcat

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,047

    Ah sorry... I have one question that I hadn't...

    Ah sorry... I have one question that I hadn't noticed when I first looked at your answer... :)



    char *buffer = my_realloc(NULL, bufsize), *b = buffer;


    How is it possible/valid to use *b =...
  2. Replies
    5
    Views
    2,047

    Thank you john.c and Salem. This is great info...

    Thank you john.c and Salem. This is great info and answered all of my questions!
  3. Replies
    5
    Views
    2,047

    growing an array the right way

    I kinda need someone that knows what they are doing with C to pick this apart, possibly show how you would do it? (It does run already but I do have some doubts).

    I am attempting to practice...
  4. Thanks John. Ah yes sorry I was copy/pasting...

    Thanks John. Ah yes sorry I was copy/pasting directly from CLion and it was even worse. Then I tried to fix by copy/pasting stdout from cat in my terminal but it appeared as shown now, even after...
  5. Thank you that is a perfect explanation. I get it.

    Thank you that is a perfect explanation. I get it.
  6. Confused about pointer solution for K&R stringcat problem

    Hi all.
    I was trying Exercise 5-3 from the K&R book where you rewrite this function version using pointers:



    void stringcat(char s[], const char t[]) {
    int i, j;
    i = j = 0;
    ...
  7. Okay thanks John

    Okay thanks John
  8. Proper way to free a pointer returned from a function

    I am going through the Understanding and Using C Pointers book and came across one example function for combining variables into a single buffer using snprintf.

    There is no example main for the...
Results 1 to 8 of 8