From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f868292008c639ce X-Google-Attributes: gid103376,public From: "Tarjei Tj�stheim Jensen" Subject: Re: C vs. Ada - strings Date: 2000/05/06 Message-ID: <3913A2E6.DC1BB384@online.no>#1/1 X-Deja-AN: 619860933 Content-Transfer-Encoding: 7bit References: <390F0D93.F835FAD9@ftw.rsc.raytheon.com> <8es4ad$3d6$1@nnrp1.deja.com> <8esjc3$lp1$1@nnrp1.deja.com> <87og6lv6ix.fsf@deneb.cygnus.argh.org> Content-Type: text/plain; charset=us-ascii X-Complaints-To: news-abuse@online.no X-Trace: news1.online.no 957588194 130.67.226.176 (Sat, 06 May 2000 06:43:14 MET DST) Organization: Jensen programvareutvikling MIME-Version: 1.0 NNTP-Posting-Date: Sat, 06 May 2000 06:43:14 MET DST Newsgroups: comp.lang.ada Date: 2000-05-06T00:00:00+00:00 List-Id: Florian Weimer wrote: > > > I'm sure that back in the old days, C didn't have string constants. > Occasionally, you still see things like > > mktemp("/tmp/fileXXXXXX"), > > and mktemp() does write to the array argument. It horrifies me that you are absolutely right. > (Of course, you should > never-ever use mktemp(), tmpnam() or tempnam(). One should keep away from mktemp(), but the Ansi C functions are perfectly usable and sensible to use. Greetings,