Re: Reading a file???



Thankyou both! :)

Uni

----- Original Message -----
From: "Daniel K. O." <danielosmari yahoo com br>
To: "Uni" <unimatrix 001 ntlworld com>
Sent: Saturday, February 15, 2003 9:14 PM
Subject: RES: Reading a file???





Let's see...


void readfromfile()
{
...
gchar temp2;

while (...)
{
 if(...)
 {

  strcpy(temp2,ent->d_name);        // <- It crashes here...possibly the
'ent->d_name'???

  strcat("/home/nuser/pro1/data",temp2);

  fr = fopen(temp2,"r");


No wonder it's crashing, you're using a gchar where you should use
gchar[].



Daniel K. O.



_______________________________________________________________________
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo!
encontra.
http://br.busca.yahoo.com/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]