From owner-freebsd-doc Thu Dec 21 10: 0:12 2000 From owner-freebsd-doc@FreeBSD.ORG Thu Dec 21 10:00:04 2000 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2D2F137B698 for ; Thu, 21 Dec 2000 10:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBLI04387080; Thu, 21 Dec 2000 10:00:04 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 21 Dec 2000 10:00:04 -0800 (PST) Resent-Message-Id: <200012211800.eBLI04387080@freefall.freebsd.org> Resent-From: gnats-admin@FreeBSD.org (GNATS Management) Resent-To: freebsd-doc@freebsd.org Resent-Reply-To: gnats-admin@FreeBSD.org, phk@critter.freebsd.dk Received: from critter.freebsd.dk (fw2.aub.dk [195.24.1.195]) by hub.freebsd.org (Postfix) with ESMTP id 1068237B400 for ; Thu, 21 Dec 2000 09:54:21 -0800 (PST) Received: (from phk@localhost) by critter.freebsd.dk (8.11.1/8.11.1) id eBLHsJK65333; Thu, 21 Dec 2000 18:54:19 +0100 (CET) (envelope-from phk) Message-Id: <200012211754.eBLHsJK65333@critter.freebsd.dk> Date: Thu, 21 Dec 2000 18:54:19 +0100 (CET) From: Poul-Henning Kamp Reply-To: phk@critter.freebsd.dk To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/23717: printf(3) is unclear about asprintf(3) return value Resent-Sender: gnats@FreeBSD.org Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 23717 >Category: docs >Synopsis: printf(3) is unclear about asprintf(3) return value >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 21 10:00:03 PST 2000 >Closed-Date: >Last-Modified: >Originator: Poul-Henning Kamp >Release: FreeBSD 5.0-CURRENT i386 >Organization: P.E.Mønsted, Fregatten Jylland som barn. >Environment: System: FreeBSD critter.freebsd.dk 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Fri Dec 15 13:12:35 CET 2000 root@critter.freebsd.dk:/freebsd/src/sys/compile/FLUTTER i386 >Description: printf(3) says: [...] int asprintf(char **ret, const char *format, ...) [...] Asprintf() and vasprintf() return a pointer to a buffer [...] It seems to me that asprintf() returns an int... >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message