Hubert Figuiere wrote:
>
> At 14:00 +0100 20/01/01, Hubert Figuiere wrote:
> >BTW, in abiword, in the ie_exp_Psion.cpp, you make use of index()
> >function, that I can't find the CodeWarrior C Library that I have to
> >use on MacOS. Since it is a function that is not in ANSI C, why not
> >using strstr () that does the same ?
>
> I meant, shall we use strchr () ?
Yes we should. 'nother diff attached, this time for the abiword tree.
Thanks,
Frodo
--
Frodo Looijaard <[EMAIL PROTECTED]> PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
The act of removing Windows from your computer in disgust, usually followed
by the installation of Linux or some other Unix-like operating system.
? src/Linux_2.2.17_i386_DBG
? src/wp/impexp/xp/ie_exp_Psion.h.org
? src/wp/impexp/xp/ie_exp_Psion.cpp.org
Index: src/wp/impexp/xp/ie_exp_Psion.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/impexp/xp/ie_exp_Psion.cpp,v
retrieving revision 1.1
diff -u -2 -r1.1 ie_exp_Psion.cpp
--- src/wp/impexp/xp/ie_exp_Psion.cpp 2001/01/19 05:33:09 1.1
+++ src/wp/impexp/xp/ie_exp_Psion.cpp 2001/01/20 14:38:01
@@ -766,5 +766,5 @@
{
char *slash;
- slash = index(input,'/');
+ slash = strchr(input,'/');
tab->kind = psiconv_tab_left;
if (slash) {
@@ -789,7 +789,7 @@
currentPos = input;
while (*currentPos != '\000') {
- nextPos = index(currentPos,',');
+ nextPos = strchr(currentPos,',');
if (!nextPos)
- nextPos = index(currentPos,'\000');
+ nextPos = strchr(currentPos,'\000');
if (!(copy = (char *) malloc(nextPos - currentPos + 1)))
return UT_FALSE;