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



Ask a Question

Subscribe to Tutorials

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. Session Bean = client data is maintained upto pred
View Tutorial          By: Chetankumar at 2012-05-19 11:12:17

2. precisely the drawbacks I am trying to address in
View Tutorial          By: ernest at 2011-02-05 02:16:13

3. I had a problem, which is the password when window
View Tutorial          By: jua at 2013-09-16 23:16:27

4. Nice explanation. And a good example to back it up
View Tutorial          By: fazil at 2009-07-29 00:32:03

5. Hi!
Any body have code for recieving sms fr

View Tutorial          By: Haseeb at 2009-07-01 04:59:13

6. javax.comm.NoSuchPortException
at javax.com

View Tutorial          By: Augustin at 2013-04-27 11:12:47

7. Hi. I have implemented the code and controls just
View Tutorial          By: eibod at 2011-02-13 04:58:44

8. I need dumps for practice
View Tutorial          By: Sanket barge at 2011-06-17 10:05:16

9. Hi you can find inheritance example in Java in the
View Tutorial          By: Mashoud at 2008-04-26 20:12:37

10. i have been trained in java stream. But i dont kno
View Tutorial          By: savio at 2013-01-23 10:15:51