10-18-2001
well pardon me if i were wrong!
I was trying to reproduce the same, but i did not find such a problem, eventhough i have encountered the same with some other compilers.
can anyone tell me how to chech whether there is end of line character in each line in a file?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello all,
how to run windows .exe file in Linux
and vice the versa (3 Replies)
Discussion started by: rajashekaran
3 Replies
2. UNIX for Dummies Questions & Answers
I've been playing around with sed for a few days now and find that regular expressions never work inside sed s/// on Mac OS 10.2.5. Has anyone else bumped up against this problem?
For example, the "sed" segment of the following always fails no matter how items are escaped:
cd... (12 Replies)
Discussion started by: ktoz
12 Replies
3. Programming
At time of installation I have to open the resource. and i have to insert a string serial number in the exe.
please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies
4. SuSE
does exe files works withe suse
am new n linux system
and were can i find msn 4 linux (2 Replies)
Discussion started by: abdulla
2 Replies
5. Linux
Hai,
is there any way to run an .exe file in unix environment . i have read that WINE HQ supports this concept but its very inconsistent and upto the user risk . but i tried WINE but iam not able to configure it can any one help me in this matter
Regards
Sanju (1 Reply)
Discussion started by: sanjustudy
1 Replies
6. UNIX for Dummies Questions & Answers
how to open .exe file in freebsd system.My work is to run a growth.exe(created by growth.c turbo c 3.0 file).how to run that exe file in freebsd system?Thanks in advance help me (8 Replies)
Discussion started by: kumarangopi
8 Replies
7. Programming
Is it possible to extract c program,from its executable file(.exe)?
i mean we dont have program but its exe file only which runs,can we retrieve the program?
if yes how?
if no why? (2 Replies)
Discussion started by: unknown9
2 Replies
8. Programming
All,
I have never comipled C code before and would appricaite if anyone could tell me how to build a .exe from a C program.
Thanks in advance. (5 Replies)
Discussion started by: thana
5 Replies
9. Programming
hello everyone,
could somebody tell me where can i find some good exercises on signals,processes and threads? actually i need to find some solved exercises in system programming.
tnx (4 Replies)
Discussion started by: micy
4 Replies
gets(3S) gets(3S)
NAME
gets(), fgets() - get a string from a stream
SYNOPSIS
Obsolescent Interface
DESCRIPTION
Reads characters from the standard input stream,
into the array pointed to by s, until a new-line character is read or an end-of-file condition is encountered. The new-line
character is discarded and the string is terminated with a null character.
Reads characters from the
stream into the array pointed to by s, until n-1 characters are read, a new-line character is read and transferred to s, or
an end-of-file condition is encountered. The string is then terminated with a null character.
Obsolescent Interface
gets a string from a stream.
APPLICATION USAGE
After or is applied to a stream, the stream becomes byte-oriented (see orientation(5)).
RETURN VALUE
Upon successful completion, and return s. If the stream is at end-of-file, the end-of-file indicator for the stream is set and a null
pointer is returned.
When the file corresponding to an open stream gets extended after the end-of-file is reached, any subsequent calls to these functions will
succeed and the end-of-file indicator will remain set. However, in the UNIX2003 standards environment (see standards(5)), these functions
will return a null pointer and the end-of-file indicator will still remain set.
If a read error occurs, the error indicator for the stream is set, is set to indicate the error, and a null pointer is returned.
and can be used to distinguish between an error condition and an end-of-file condition.
ERRORS
and fail if data needs to be read into the stream's buffer, and:
The flag is set for the file descriptor underlying stream and the process would be delayed in the read operation.
The file descriptor underlying
stream is not a valid file descriptor open for reading.
The read operation was terminated due to the receipt of a signal,
and either no data was transferred or the implementation does not report partial transfer for this file.
The process is a member of a background process
and is attempting to read from its controlling terminal, and either the process is ignoring or blocking the signal or the
process group of the process is orphaned.
Additional values can be set by the underlying function (see read(2)).
WARNINGS
is an obsolescent interface supported only for compatibility with existing DCE applications. New multithreaded applications should use
SEE ALSO
ferror(3S), flockfile(3S), fopen(3S), fread(3S), getc(3S), puts(3S), scanf(3S), orientation(5), standards(5), thread_safety(5), glos-
sary(9).
STANDARDS CONFORMANCE
gets(3S)