Thanks that makes it a lot less confusing...
Type: Posts; User: EUJeffrey
Thanks that makes it a lot less confusing...
Ok, so it's just plain luck now...
Can I determine the size of the newly allocated block (after malloc)?
e.g. sizeof(s) or strlen(s) ? Will it return the allocated space?
When I use these...
I just recently started programming in C.
I'm running into problems with Malloc. It seems like malloc doesn't do anything with my string?
I have the following code:
char *s;
s =...