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

Sun 2003-01-19 20:50, Gerrit Kuehn (2:246/4020) wrote to smapi hackers:

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

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

So removing both is one way of solving your problem, which is what I did to
XMSGAPI (which should compile cleanly on most systems).

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

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

  or

static char *strupr(char *str) { ... }

The former is probably the better option.

-- mail{at}ozzmosis.com

--- Msged/BSD 6.1.1
* Origin: Blizzard of Ozz, Mt Eliza, Victoria, Australia (3:633/267)
SEEN-BY: 633/267 270
@PATH: 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™.