*BSD News Article 48018


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!recepsen.aa.msen.com!spool.mu.edu!howland.reston.ans.net!news.sprintlink.net!vodka.intele.net!usenet
From: Barnacle Wes <wes@intele.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: [fcg]convert?  FreeBSD missing some libc necessities?
Date: 28 Jul 1995 05:05:22 GMT
Organization: The briney, briney deep
Lines: 24
Message-ID: <3v9r6i$hv1@vodka.intele.net>
References: <3v0h1m$7r0@mark.ucdavis.edu>
NNTP-Posting-Host: slcmodem1-p1-6.intele.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; BSD/386 uname failed)
X-URL: news:3v0h1m$7r0@mark.ucdavis.edu

ccjason@quadrophenia.ucdavis.edu (Jason Gabler) wrote:
>        I was wondering if you have heard of the lack of
> [fcg]cvt and [fcg]convert in FreeBSD libraries and include files?
> I have found these functions on SunOS, Solaris, and HP-UX.  I figured
> since they are on SunOS (and I believ they are POSIX) they would
> be in FreeBSD.  I have searched the libraries, the include files, tons
> of brains of friends and other FreeBSD users to find these functions
> or their equivalents.

the ?cvt functions are usually internal helper functions for scanf and/
or printf.  Since they're not documented, that means you cannot count 
on them appearing.  I suggest looking at the source for printf, wherever 
it occurs, and seeing of these functions are still there but declared 
static.

In general, you're best off not relying on unpublished interfaces; use
sscanf/sprintf.

-- 
   Wes Peters	| Yes I am a pirate, two hundred years too late
    Softweyr 	| The cannons don't thunder, there's nothing to plunder
   Consulting	| I'm an over forty victim of fate...
 wes@intele.net	|					Jimmy Buffet