[openbeos] Re: Ghost in the machine

  • From: "Manuel Jesus Petit de Gabriel" <freston@xxxxxxxxxxx>
  • To: <openbeos@xxxxxxxxxxxxx>
  • Date: Sun, 7 Jul 2002 12:22:24 -0700

----- Original Message ----- 
From: "Daniel Reinhold" <danielr@xxxxxxxxxxxxx>
To: <openbeos@xxxxxxxxxxxxx>
Sent: Sunday, July 07, 2002 10:37 AM
Subject: [openbeos] Re: Ghost in the machine


> The error code return value sure clears up a mystery. Of course -- it's 
> not succeding on NULL -- it's succeding on 0. Whew, what a relief! The 
> orginal author of the shell function was confused on this too, because 
> he had the return value as a char *, which is where I came in.

Uhm, i'm not sure what shell are you using. The newos shell has (always
had) it right.

Anyhow, it is an understandable error since getpwd() returns
a pointer. However it is not yet in the libraries, so the syscall is used.


manuel,





Other related posts: