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 =...
Type: Posts; User: madcat
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 =...
Thank you john.c and Salem. This is great info and answered all of my questions!
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...
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...
Thank you that is a perfect explanation. I get it.
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;
...
Okay thanks John
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...