This function copies a character string into the specified section of the specified initialization file.

C format

int32 piut_writeprofile(

char PIPTR * section,

char PIPTR * entry,

char PIPTR * buf,

char PIPTR * file );



System Error




section (passed)

Section of the file containing the entry. This section name should not include the square brackets ("[]").

entry (passed)

Entry to add or modify

buf (passed)

Character string to insert. If this value is NULL, then the entry is deleted.

file (passed)

Initialization file name

Usage Notes

All strings should be null-terminated.

This function is implemented on Microsoft Windows platforms as a macro for the native function WritePrivateProfileString

Enabling Operational Intelligence