Re: how to represent current directory in C program.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 09, 2005 at 12:24:47AM +0800, qiang zeng wrote:
> my question is how to represent current directory in C program.
> when i am using execlp()  function in my c program.
> i always have to key in the directory where the file is located.
> is there a simple method ? for example a simple sign like '../'
> or 'use pwd',but how?

Not kernel related, but see "man getcwd".


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux