Menu

#1 <string.h> and String.h problem

open
nobody
None
5
2003-07-11
2003-07-11
No

Three issues with string.

1. The Exception class does not include the <string> or
<string.h> header file, thus not declaring strcpy and such
functions.

2. The String.h class used #ifndef _STRING_H_ directive, this
prevents including the <string.h> system file, which does the
same. It should be _String_h_, as in Object and Exception.

3. Possibly the use of String.h could be hazardous on
filesystems with which are not case sensitive (like HFS+ which
is only case aware). This is solved if one includes "cjava/lang/
String.h" so it might not be a problem at all, just something
to be aware of.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.