Hi,
in my system I didn't get any error whil compiling .,
In which OS you are compiling . Please include the header files which are
necessary in your system.
I am using RH 9 so i din't get any pblm
Incase If you find Problem pl ring me at 984177482
bye
with warm regards,
Anthony Jesu Ashok S Ext : 7257
Raja Mallik <raja.mallik@xxxxxxxxxxx>
02/09/2005 06:30 PM
To: Anthony Ashok <Anthony.Ashok@xxxxxxxxxxxxxxx>
cc: ilugc@xxxxxxxxxxxxx
Subject: Re: [Ilugc] RE: C help?
Hi Anthony!
Thanks for the mail..
wow! while complining I get
NewFindTags.c:31: stray '\302' in program
NewFindTags.c:31: stray '\240' in program
NewFindTags.c:33: stray '\302' in program
NewFindTags.c:33: stray '\240' in program
I have never seen this..
-raja
On Wed, 2005-02-09 at 18:13, Anthony Ashok wrote:
Hi,need
As per the Understanding from the requirement I have done this If you
any Addition please tell me so that I can do that for you.
Thanx
# include <stdio.h>
main (int argc , char **argv )
{
FILE *fp ;
int c, rep, i ;
if ( argc != 2 ) {
printf ( "Usage : %s : <replace_string>\n" , argv[0] ) ;
exit (1);
}
if ( ( fp = fopen ( "temp1" , "r+" ) ) == NULL ) {
fprintf ( stderr , "Error in opening the file\n" );
exit (1);
}
rep = 0; i = 0;
while ( ( c = getc ( fp ) ) != EOF ) {
if ( c == '=' ) {
while ( argv[1][i] != '\0' ) {
fprintf ( fp , "%c" , argv[1][i] ); i++;
}
rep = 1;
}
if ( rep ) fprintf ( fp , "%c" , ' ' ) ;
}
fclose(fp);
}
with warm regards,
Anthony Jesu Ashok S Ext : 7257
______________________________________________________________________
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc