From owner-freebsd-questions@FreeBSD.ORG Thu Dec 15 21:44:54 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A24C16A41F for ; Thu, 15 Dec 2005 21:44:54 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 734F543D66 for ; Thu, 15 Dec 2005 21:44:36 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so384218wxc for ; Thu, 15 Dec 2005 13:44:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=MiPrXKjTD5revEFAjua/Ju9PrPajaIaUKbF6M6XVvsnjQ08gq6REi63758342gh5ES5Cuo6uDH2Ee8wevcrTHeujG/OBdy/Eq7SQhVXkTe6GBcAclxUYCLnPdfzej2sxn/W+yYHD9KJuf8HPJXshf1hepTpAM+e0ocC4/NYu9NE= Received: by 10.70.38.10 with SMTP id l10mr3332944wxl; Thu, 15 Dec 2005 13:44:35 -0800 (PST) Received: from ringworm.mechee.com ( [71.102.14.129]) by mx.gmail.com with ESMTP id i16sm3621260wxd.2005.12.15.13.44.34; Thu, 15 Dec 2005 13:44:35 -0800 (PST) From: "Michael C. Shultz" To: freebsd-questions@freebsd.org Date: Thu, 15 Dec 2005 13:44:33 -0800 User-Agent: KMail/1.8.3 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512151344.33503.ringworm01@gmail.com> Cc: Vasilkov Vasily Subject: Re: "fopen" call... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 21:44:54 -0000 On Thursday 15 December 2005 13:41, Vasilkov Vasily wrote: > Hi all.. > this is the part of my source > ************ > FILE *source; > source = fopen("/home/user/test.c", "r"); > if (source) { > printf("fopen error"); > exit(0); > }; > ************ > file "/home/user/test.c" exists and its access mode is 777..., but > when I run program, I get "fopen error" message... > > Can anybody explain me this subj? > > Try if(source == NULL ) -Mike