Posts by Gabriel Távora • 55 points
2 posts
-
3
votes1
answer113
viewsQ: Pointer is lost at function output
I have the following function typedef struct userDataStruct { char name [MAX_NAME_LENGTH+1]; struct userDataStruct *next; } userDataType; errorType GetUsers (userDataType **list) { FILE *file; char…
casked Gabriel Távora 55 -
2
votes1
answer164
viewsQ: Break string with multiple symbols
I have a string in the following format: 0:name:password:email:etc I need to separate it into each ':', and I’m doing this with the Strtok(string function, ':'). The problem is that the password can…
casked Gabriel Távora 55