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. Errm, Rails is just a bunch of Ruby scripts, not a
View Tutorial          By: gngn at 2010-07-12 22:19:55

2. Wow, incredible code!! With some brains this is a
View Tutorial          By: Dem0-n at 2011-06-11 07:10:12

3. hi this is from iniyan....
can you send t

View Tutorial          By: iniyan at 2007-09-09 06:50:18

4. you do the same as after
Private Sub Button

View Tutorial          By: John McCode at 2013-05-24 07:57:31

5. When run this code then I am getting a blank page.
View Tutorial          By: Paritosh Chandra Dey at 2013-08-14 08:55:42

6. Dear any buddy i use Nokia N73 and connect with Bl
View Tutorial          By: zstranger at 2012-03-29 07:47:02

7. Only first row is exported, help to export all the
View Tutorial          By: Achyut at 2014-12-18 04:26:26

8. give me the code
View Tutorial          By: roger at 2013-10-10 19:44:07

9. superb superb maza aggaya maza aggaya
View Tutorial          By: pramodh at 2012-04-16 05:21:54

10. Also note that for reverse ordering, If you have a
View Tutorial          By: Dwight at 2011-07-13 22:13:45