Comment on Tutorial - lseek() sample program in C By Baski



Comment Added by : Terry

Comment Added at : 2009-09-27 13:15:56

Comment on Tutorial : lseek() sample program in C By Baski
To determine current location in a file:
{
if (lseek(STDIN_FILENO, 0, SEEK_CUR) == -1)
printf ("cannot seek\n");
else
printf("seek at %d", &SEEK_CUR);
exit(0);
}


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. output is not specified there.., it must should be
View Tutorial          By: yash at 2014-09-17 16:35:52

2. Good To understand.
View Tutorial          By: Radhika at 2010-05-11 01:24:55

3. @dodo : Overloading is only for parameter types an
View Tutorial          By: sundar at 2010-04-19 02:44:23

4. A good short article on Struts. Require a step by
View Tutorial          By: Atul Saxena at 2012-01-09 19:56:59

5. i like the example and it helped me understand the
View Tutorial          By: Danny at 2009-10-23 02:09:06

6. helpful :)
View Tutorial          By: ravinder at 2012-03-22 11:52:19

7. good for us
View Tutorial          By: soumen chakraborty at 2008-08-25 01:28:30

8. javax.comm.NoSuchPortException
at javax.co

View Tutorial          By: agnas at 2008-04-29 16:26:41

9. great work
View Tutorial          By: Bhaskaran at 2013-01-21 11:23:19

10. Hi,
I am getting this exception..My modem i

View Tutorial          By: divya at 2008-04-27 04:12:19