From owner-freebsd-hackers Mon Jun 22 15:02:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA03690 for freebsd-hackers-outgoing; Mon, 22 Jun 1998 15:02:06 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from echonyc.com (echonyc.com [198.67.15.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA03610 for ; Mon, 22 Jun 1998 15:01:15 -0700 (PDT) (envelope-from benedict@echonyc.com) Received: from localhost (benedict@localhost) by echonyc.com (8.8.7/8.8.7) with SMTP id SAA01252; Mon, 22 Jun 1998 18:00:28 -0400 (EDT) Date: Mon, 22 Jun 1998 18:00:27 -0400 (EDT) From: Snob Art Genre Reply-To: ben@rosengart.com To: Evren Yurtesen cc: ben@rosengart.com, freebsd-hackers@FreeBSD.ORG Subject: Re: - pop3 - URGENT In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 23 Jun 1998, Evren Yurtesen wrote: > sorry I did not see the freebsd-isp list on lists list... > I guess I missed it... > also I asked it at questions list and nobody could answer... > I do not want to have a huge /var/mail directory full of > symlinks... I wanted to change the source code of pop3 > there it was writing /var/mail I changed it with $HOME/mail > but the c compiler thinks $HOME something else... > how may I make the compiler to ignore $ sign at front of HOME? You're trying to use a shell variable in a C program. Read the man page for getpwent(3) to see how to get a user's home directory from the passwd file. Or, if you're hell-bent on using the environment variable, look at getenv(3). I suspect that the former approach is the recommended one, though. Ben "You have your mind on computers, it seems." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message