Xref: news-dnh.mv.net comp.lang.c:49199 comp.os.msdos.djgpp:4064 Path: news-dnh.mv.net!mv!barney.gvi.net!news.sprintlink.net!news.texas.net!news.kei.com!newsfeed.internetmci.com!miwok!news.zeitgeist.net!vnetnews.value.net!veenet.value.net!not-for-mail From: oracle AT veenet DOT value DOT net (informix) Newsgroups: comp.os.msdos.djgpp,comp.lang.c Subject: is there something wrong with this?... Date: 28 Dec 1995 22:20:59 -0800 Organization: Pro Hemp Initiative Lines: 18 Message-ID: <4c01cb$nu2@veenet.value.net> NNTP-Posting-Host: value.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp .... while((fgets(temp,120,fp))!=NULL) { sscanf(temp,"%s:%s:%*s:%*s:%*s:%*s:%*s",sent[x].name, sent[x].passwd); ++x; } .... this was meant to read a unix password file (/etc/passwd) and extract the username and encrypted password field... can someone tell me why this is not working as planned?... it worked on a shitty compiler... i recently installed djgpp... should i be doing to a better way?... is it portable?... Ron!