\Verbatim
/*************** foo.c file *******************/
#include<stdio.h>
#include<string.h>
#include<conio.h>
#include<windows.h>
// Windows-specific functions used:
// _fullpath : make filename into full path
// _splitpath : split a _fullpath into its component parts
// GetPrivateProfileString: handle the .ini file
_fullpath(path,argv[0],250);
_splitpath(path,drive,dir,filname,ext);
char TEXINAME[100], NOBATCHNAME[MV2];
GetPrivateProfileString("Files", "TEXINAME", NOBATCHNAME, TEXINAME, 100, "foo.ini");
GetPrivateProfileString("Strings", "SWPPACK", dSWPPACK, SWPPACK, 100,"foo.ini");
DEBFLAG=GetPrivateProfileInt("integers", "DEBFLAG",0, "foo.ini");
/*************** foo.ini file ********************/
[integers]
; DEBFLAG = 1 prints additional details
DEBFLAG = 0
[files]
; texinfo
TexiName = texis.bat
[strings]
; swp package
SWPPACK = {swpht}