[Qt-interest] Symbolic link real value?

Will Rutherdale (rutherw) rutherw at cisco.com
Tue Jul 28 17:13:08 CEST 2009


> -----Original Message-----
> From: qt-interest-bounces at trolltech.com 
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Lukas Lipavsky
> Sent: 28 July 2009 11:00
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Symbolic link real value?
> 
> On 28.07. 10:55, Will Rutherdale (rutherw) wrote:
> > man -s 3 readlink
> > 
> > The standard solution in any Unix-like system is:
> > 
> > #include <unistd.h>
> > 
> > // ...
> > 
> > ssize_t nbytes = readlink( "location/of/my/symlink", my_buff,
> > my_buff_size );
> > 
> > -Will
> 
> Of course, you're absolutely right! How could I forgot...
> 
> Thanks

At first I forgot the name of the function.  Then I fed this phrase into
Google:

how to get symlink value

The first entry in the results list mentioned the function readlink().

-Will




More information about the Qt-interest-old mailing list