Subject: Re: Programming
To: None <SULEWSKIJ@delphi.com, amiga@NetBSD.ORG>
From: Hubert Feyrer <Hubert.Feyrer@rz.uni-regensburg.de>
List: amiga
Date: 01/07/1995 07:28:03
> cd ~
>
> my fopen command crashes with this line,
> input=fopen("~/.quickconfig","r");
>
> ktrace reports that it can't find the file ~/.quickconfig however, when
> I do a:
> man ~/.quickconfig
> I can read the file.  Does anybody know why this is happening? Thanks
> for any reply.  :)

the '~' is interpreted by the shell just as *, ~, ... are. the Tilde-expansion
didn't make it into Posix, so you can't use it. You'll have to find out the
value of ~ yourself, maybe using getenv("HOME") or using getpwent().


Hope this helps,

		Hubert

-- 
=============== Hubert Feyrer ============================================
      Weekdays: Rennerstr. 19, D-93053 Regensburg, Tel. 0941/943-2455
      Weekends: Bachstr. 40,   D-84066 Mallersdorf, Tel. 08772/6084
      Internet: hubert.feyrer@rz.uni-regensburg.de == IRC: hubertf
==========================================================================