Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char *readCredentials(){
- /*Put the content from credentials.json in a buffer.*/
- char *credentials = (char *) malloc(SIZE * SIZE);
- memset(credentials, 0, sizeof(char) * SIZE * SIZE);
- FILE *f = fopen(CREDENTIALS, "rb");
- int count = 0;
- while((credentials[count++] = fgetc(f)) != EOF);
- return credentials;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement