TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: All
from: Ronald Yii
date: 1995-09-25 10:00:28
subject: GNU And chdir

Hi all

I'm currently experimenting with chdir (GNU C) under Warp.

----------  ---------
#include 
#include 

main ()
{
 
    int result;
    char *directory;
    char test[]="..";

    result=chdir(test);

    directory=_getcwd2(directory,50);

    printf("%s\n",directory);
}

-------  ------------

-------  ----------

[C:\data] main
C:/

[C:\data]      <- I'd expect the prompt to say [C:\]

-------  ---------

So what am I doing wrong ?
Any constructive comments appreciated.

best wishes
ron


... I once thought I was dead, but I was just off-line.






--- Maximus/2 2.01wb
* Origin: I hate origins ! (3:711/934.15)
SEEN-BY: 711/809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.