add a side effect warning that bit me hard during M6

This commit is contained in:
alecf%netscape.com 1999-05-04 20:28:24 +00:00
parent a746dd8b56
commit 39d97ca312
2 changed files with 6 additions and 2 deletions

View File

@ -134,6 +134,7 @@ public:
}
/**
How to use this fancy (thread-safe) version of strtok:
void main( void ) {
@ -148,7 +149,8 @@ public:
token = nsCRT::strtok( newStr, seps, &newStr );
}
}
* WARNING - STRTOK WHACKS str THE FIRST TIME IT IS CALLED *
* MAKE A COPY OF str IF YOU NEED TO USE IT AFTER strtok() *
*/
static char* strtok(char* str, const char* delims, char* *newStr);

View File

@ -134,6 +134,7 @@ public:
}
/**
How to use this fancy (thread-safe) version of strtok:
void main( void ) {
@ -148,7 +149,8 @@ public:
token = nsCRT::strtok( newStr, seps, &newStr );
}
}
* WARNING - STRTOK WHACKS str THE FIRST TIME IT IS CALLED *
* MAKE A COPY OF str IF YOU NEED TO USE IT AFTER strtok() *
*/
static char* strtok(char* str, const char* delims, char* *newStr);