TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: andrew clarke
from: Gerrit Kuehn
date: 2003-01-20 20:55:24
subject: strupr in compiler.h

Hello andrew!

20 Jan 03 16:41, andrew clarke wrote to Gerrit Kuehn:


 >> I have problems with source coming with its own implementation of 
 >> strupr and including smapi/compiler.h.

 ac> strupr() is only used by SMAPI's strftime() function, but strftime() 
 ac> is an ISO C function (prototyped in time.h), so unless your 
 ac> compiler's C libraries aren't ISO C compliant (unlikely), SMAPI need 
 ac> not redefine it.

Of course my compiler is ISO-C compliant (gcc 2.95-3 and above here :-).
But given this information, I'm still wondering why SMAPI does define this
function right now?!

 ac> If you still want to use strupr, add it to your own code using 
 ac> either:

I have to use it (or something equivalent), because it's used in the source
I want to compile.

 ac> char *my_strupr(char *str) { ... }

I guess that's what I'll do: just rename the function in the source to get
out of the way of things SMAPI defines.

 ac> The former is probably the better option.

I think so, too. Thanks for the info.


Regards,
Gerrit

--- Msged/BSD 6.0.0
* Origin: Shock to the System (2:246/4020)
SEEN-BY: 633/267 270
@PATH: 246/4020 2411/413 2432/200 2476/418 140/1 106/2000 1 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.