INI file functions

Started by Shantanu Gadgil, September 29, 2006, 07:15:50 PM

Previous topic - Next topic

Shantanu Gadgil

Some INI file handling functions.
Ini_GetKeyNames
Ini_GetSectionNames
Ini_ReadDword
Ini_ReadInt
Ini_ReadString
Ini_WriteInt
Ini_WriteString


The INI module uses two other functions:
SM_DecimalStringToDword
SM_DecimalStringToInt


These two are part of a bigger StringMaths library, and thus named SM_xxx.  :bg :bg
Giving the two functions separate, if you want them.
One thought is to use the crt_atoi and such for the conversion.

Also, the dwtoa in the Genesys Library does a round-about two step conversion, right-to-left and then reverses the string to get the correct output.
Check out the left-to-right conversion in the SM_xx functions!  :bg :bg

Regards,
Shantanu

[attachment deleted by admin]
To ret is human, to jmp divine!

PBrennick

Shantanu,
You are definitely becoming an associate member of the GeneSys Project.  We are VERY grateful for all your support.

Paul and Erol
The GeneSys Project is available from:
The Repository or My crappy website

Shantanu Gadgil

Thanks for all the good words! Its a pleasure to give back!

Regards,
Shantanu
To ret is human, to jmp divine!

Grincheux

THAT is very very useful !

Thanks a lot
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz