| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | changing directory |
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.
--- Blue Wave/Max v2.12
* Origin: Dial 1-800-Origin for a witty Origin Line ! (24hrs) (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™.