Subdomain Posts
C | 613 days ago
C | 663 days ago
C | 664 days ago
C | 665 days ago
Bash | 699 days ago
C | 699 days ago
C | 706 days ago
C | 706 days ago
C | 714 days ago
C | 715 days ago
Recent Posts
None | 2 sec ago
None | 11 sec ago
PHP | 17 sec ago
None | 27 sec ago
None | 53 sec ago
None | 57 sec ago
None | 1 min ago
JavaScript | 1 min ago
Bash | 1 min ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By cromestant on the 22nd of May 2008 02:38:03 AM Download | Raw | Embed | Report
  1. USUARIO * addUser(char *uname,char *passwd)
  2. {
  3.         USUARIO *aux;
  4.         aux=(USUARIO *)malloc(sizeof(USUARIO *));
  5.         aux->username = uname;
  6.         aux->password =passwd;
  7.         return aux;
  8. }
  9.  
  10.  
  11. int loadPrefs(){
  12. /*      char todo[256],*uname,*password;
  13.         printf("Cagando configuraciones.%s \n","lista de archivos");
  14.         lista = (USUARIO *)malloc(sizeof(USUARIO *));
  15.         USUARIO *auxu = lista;
  16.         FILE *in;
  17.         in=fopen("configs/authusers.spa","r");
  18.         if (in==NULL){
  19.         printf("Error al abrir el archivo de configuracion configs/authusers.spa");
  20.         return -1;
  21.         }
  22.  
  23.         while (fgets(&todo,256,in)!=NULL)
  24.         {
  25.                 uname=strtok(&todo,"=");
  26.                 password =strtok(NULL,"=");
  27.                 printf("added %s : %s",uname,password);
  28.                 auxu->proximo=addUser(uname,password);
  29.                 auxu=auxu->proximo;
  30.         }
  31.         fclose(in);
  32.         return 1;
  33. */
  34.  
  35. printf("Cagando configuraciones.%s \n","lista de archivos");
  36.         lista = (USUARIO *)malloc(sizeof(USUARIO *));
  37.         lista->username ="cromestant";
  38.         lista->password="12345";
  39.         USUARIO *auxu = (USUARIO *)malloc(sizeof(USUARIO *));
  40.         auxu->username ="cromestant";
  41.         auxu->password ="testpassword";
  42.         lista->proximo =auxu;
  43. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: