[lug] OT: cpp programing question
rob at pangalactic.org
Wed Apr 3 21:39:11 MST 2002
Way off topic. Google is your friend.
itoa() - integer to ASCII - use the portable snprintf() instead.
_findXXXX() - retreive the files that match the search string.
Nonportable. Must reimplement (probably already done -- use google).
Another option is to use winelib, which may implement these functions
>Hi programming gurus!
>I have this psuedo project at work. I have some code a guy wrote in M$
>CPP. There are some function call in it that I don't know how to port.
>Can anybody help me? Here they are:
>killer.cpp:249: `itoa' undeclared (first use this function)
>killer.cpp:271: `_findfirst' undeclared (first use this function)
>if( (hFile = _findfirst( "*.APX1", &c_file )) == -1L )
>There are sever find??? functions in this code. Findfirst, findnext and
>finddata & findclose. Does anybody know if these function calls are
>portable and what would be the equivalent function call? Thanks in
>advance for your help.
More information about the LUG