delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "philippe meynard" <philippe DOT meynard AT vendeeconcept DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: error with sprintf |
Date: | Tue, 6 Sep 2005 13:48:03 +0200 |
Organization: | Guest of France Telecom's news reading service |
Lines: | 42 |
Message-ID: | <dfjvll$mv7$1@s1.news.oleane.net> |
References: | <dfjtbh$kg1$1 AT s1 DOT news DOT oleane DOT net> <431d7d5a$0$177$cc7c7865 AT news DOT luth DOT se> |
NNTP-Posting-Host: | 62.161.106.155 |
X-Trace: | s1.news.oleane.net 1126007286 23527 62.161.106.155 (6 Sep 2005 11:48:06 GMT) |
X-Complaints-To: | abuse AT oleane DOT net |
NNTP-Posting-Date: | Tue, 6 Sep 2005 11:48:06 +0000 (UTC) |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 6.00.2800.1106 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
sorry I wanted to write : char chaf[100]; sprintf(chaf,"%d\n",100); "Martin Str|mberg" <ams AT speedy DOT ludd DOT ltu DOT se> a écrit dans le message de news: 431d7d5a$0$177$cc7c7865 AT news DOT luth DOT se... > philippe meynard <philippe DOT meynard AT vendeeconcept DOT com> wrote: > > do you know if the function sprintf used dos call dpmi_int (0x21) or return > > the processor to the real mode ? > > 1. You can check yourself (get dlsrc*.zip). > > 2. I haven't checked (see 1) but I would be very surprised if it > needed to call dpmi_int() as the operation is purely an updating of > memory. > > 3. If the processor would be returned to real mode, it would have to > be through a call to dpmi_int() (at least DJGPP would use that). No > "or" about it. > > > Because I use LWP (multitasking library) and I have a crash on this function > > sprintf ! > > I use sprintf like this : > > > char ch[100]; > > sprintf(chaf,"%d\n",100); > > 4. chaf undeclared. > > 5. Assuming you meant ch, there shouldn't be any reason for sprintf() > to bomb on that line. > > > Right, > > MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |