LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search/Browse

 Category Gateway
More Options
Category:

LinuxLinks News
 · 9 Excellent Open Source Configuration Management Applications
 · A Beginner’s Introduction to Linux
 · Simon Tatham’s Portable Puzzle Collection – Games for the Brain
 · Captain Holetooth – Explorative 2D Platform Game for Kids
 · Taisei – A Classy, Frenetic Shoot’em Up Game in the Style of The Touhou Project
 · YouTube Channel
 · Minilens – Fun Open Source Puzzle Platform Game
 · Wizznic! – Highly Addictive Open Source Puzzle Game
 · Success! Beelink S1 Running Linux – Courtesy of the Open Source Community
 · Beelink S1 Mini PC and Linux – Comedy Gold
(more...)
 

LinuxLinks Login

Login:

Password:



Click here
to start your own
Link collection!


Click to Visit

My LinuxLinks
 My LinuxLinksMyLinks  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Last login

 
Post new topic   Reply to topic    LinuxLinks.com Forum Index -> Programming
View previous topic :: View next topic  
Author Message
malek malek
Registered


Joined: 30 Nov 2010
Posts: 1

PostPosted: Tue Nov 30, 2010 11:35 pm    Post subject: Last login Reply with quote

Hi everyone,
My purpose is to write a C program that allows me print the date of last login on a linux kernel. I've thaught that I can use fgets to read the required line from the file /var/log/lastlog but the problem is that this file is binary so I can not locate the info that I wish get Confused
If anyone has an idea please answer me, I would be grateful Wink
Back to top
View user's profile Send private message

Display posts from previous:   
Post new topic   Reply to topic    LinuxLinks.com Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2002 phpBB Group
Built with GeekLog and phpBB
Comments to the webmaster are welcome
Copyright 2009 LinuxLinks.com - All rights reserved