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. This tutorial is really fantastic.It helped me a l
View Tutorial          By: Rakesh Verma at 2008-06-25 13:25:23

2. the example program is very simple to understand a
View Tutorial          By: Zubilu at 2010-10-06 00:19:13

3. Dear Gurus, I have arrived at your site lloking f
View Tutorial          By: Fred Mah at 2012-09-22 07:40:27

4. Good one.........!!!
View Tutorial          By: Shailesh Nakade at 2012-07-11 09:48:33

5. The following exception are raised in send sms in
View Tutorial          By: Vikram Subbiah at 2010-04-12 02:09:36

6. Its informative and helpful. Thanx
View Tutorial          By: Usama at 2012-07-14 22:16:45

7. Dude, you made my day.
View Tutorial          By: Sebastián at 2011-08-29 14:01:10

8. Hi Doug,

This code is for Javascrip

View Tutorial          By: Ramlak at 2008-12-04 02:47:44

9. ma'am aiza teaches us very well.. >< i like
View Tutorial          By: chai at 2011-02-07 07:06:36

10. Hi,
I want to read the barcode and print it

View Tutorial          By: Santu at 2013-03-12 18:15:18