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. Thanks for the help, however I am having some diff
View Tutorial          By: Andrew at 2008-09-30 14:51:14

2. super j2me introduction
View Tutorial          By: govinth at 2012-02-05 09:33:18

3. Hi
i am getting this error

c

View Tutorial          By: parab at 2012-08-01 06:24:18

4. GC.Collect is for .net not for java don't get conf
View Tutorial          By: asin at 2013-06-27 15:47:35

5. Error...!!
please send correct java code fo

View Tutorial          By: mayuri at 2013-10-20 13:26:30

6. How i can comment in server?Some another message
View Tutorial          By: Youjizz at 2013-04-09 00:30:47

7. write a program to prepare the student marks for s
View Tutorial          By: belgreen frodo at 2015-03-31 05:41:05

8. Thanks a lot! This really helped!!!
View Tutorial          By: SuperSeppel13 at 2009-04-14 04:25:06

9. it is not working
View Tutorial          By: shaishav at 2013-06-20 08:03:06

10. Great article! Simple and precise. Thanks!
View Tutorial          By: dz at 2014-10-06 04:36:56