Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. char *readCredentials(){
  2. /*Put the content from credentials.json in a buffer.*/
  3. char *credentials = (char *) malloc(SIZE * SIZE);
  4. memset(credentials, 0, sizeof(char) * SIZE * SIZE);
  5. FILE *f = fopen(CREDENTIALS, "rb");
  6. int count = 0;
  7. while((credentials[count++] = fgetc(f)) != EOF);
  8. return credentials;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement