[lug] OT: cpp programing question

Tkil tkil at scrye.com
Wed Apr 3 21:26:16 MST 2002


>>>>> "Jeff" == feenix  <Jeff> writes:

Jeff> error log:
Jeff> killer.cpp:249: `itoa' undeclared (first use this function)

Jeff> source:
Jeff> itoa(count[j],output,10);

man snprintf

Jeff> error log:
Jeff> killer.cpp:271: `_findfirst' undeclared (first use this function)

Jeff> source:
Jeff> if( (hFile = _findfirst( "*.APX1", &c_file )) == -1L )

man glob

Jeff> There are [several] find??? functions in this code.  Findfirst,
Jeff> findnext and finddata & findclose.

those are win32 api calls.  you should be able to find docs on them at
www.microsoft.com.  basically, they are a filtered iterator idiom.

Jeff> Does anybody know if these function calls are portable

not bloody likely, but easy enough to work around.

Jeff> and what would be the equivalent function call?

see the man pages mentioned above.

t.



More information about the LUG mailing list