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...
By cromestant on the 22nd of May 2008 02:38:03 AM
Download |
Raw |
Embed |
Report
USUARIO * addUser(char *uname,char *passwd)
{
USUARIO *aux;
aux=(USUARIO *)malloc(sizeof(USUARIO *));
aux->username = uname;
aux->password =passwd;
return aux;
}
int loadPrefs(){
/* char todo[256],*uname,*password;
printf("Cagando configuraciones.%s \n","lista de archivos");
lista = (USUARIO *)malloc(sizeof(USUARIO *));
USUARIO *auxu = lista;
FILE *in;
in=fopen("configs/authusers.spa","r");
if (in==NULL){
printf("Error al abrir el archivo de configuracion configs/authusers.spa");
return -1;
}
while (fgets(&todo,256,in)!=NULL)
{
uname=strtok(&todo,"=");
password =strtok(NULL,"=");
printf("added %s : %s",uname,password);
auxu->proximo=addUser(uname,password);
auxu=auxu->proximo;
}
fclose(in);
return 1;
*/
printf("Cagando configuraciones.%s \n","lista de archivos");
lista = (USUARIO *)malloc(sizeof(USUARIO *));
lista->username ="cromestant";
lista->password="12345";
USUARIO *auxu = (USUARIO *)malloc(sizeof(USUARIO *));
auxu->username ="cromestant";
auxu->password ="testpassword";
lista->proximo =auxu;
}
Submit a correction or amendment below.
Make A New Post