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



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. Nice Article....
View Tutorial          By: Vipin Joshi at 2008-04-13 15:35:42

2. I am using my samsung s5233 via usb connection, ru
View Tutorial          By: Puneet at 2010-04-23 06:14:28

3. It's really helpful , thanks a lot
View Tutorial          By: Avijit at 2009-09-08 05:18:39

4. very brief and easy to understand description of R
View Tutorial          By: moona at 2010-05-26 22:49:26

5. hi,
Very nice tutorial. But please I have s

View Tutorial          By: hemn at 2010-04-17 06:02:00

6. Hi

Where puts this code in ror app

View Tutorial          By: martin at 2013-01-31 08:51:12

7. Very usefull tutorial, but I've got a question:
View Tutorial          By: Wolfgang Marcos at 2011-05-16 11:12:19

8. Once i run it gives the following error.Why "
View Tutorial          By: IDK at 2008-12-18 19:56:12

9. hi i want to run a c program in java program but i
View Tutorial          By: jyothi at 2014-11-27 06:40:27

10. hi i need moving clock javascript code...please se
View Tutorial          By: madhavan at 2008-10-19 21:59:45