home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
flink11.zip
/
SmallDemo.fpl
< prev
next >
Wrap
Text File
|
1995-07-25
|
761b
|
44 lines
void Pause(void)
{
getchar("Press any key to continue.");
printf("\n");
}
void SayDate(void)
{
int time=nowtime();
printf("\nThe current time is %s.\n",time2str(time));
}
void SayFile(string Filename)
{
string buf;
buf=loadstring(Filename);
if(strlen(buf)>100)
buf=substr(buf,0,100);
printf("\nThe first 100 bytes of this FPL script looks like this:\n");
printf("'%s'\n",buf);
}
string GetPhone(string User)
{
string phone;
loaduser(User);
phone = getuservar("phone");
return phone;
}
/* Execution start point */
SayDate();
Pause();
SayFile("SmallDemo.fpl");
Pause();
printf("\nMy phone is: %s\n",GetPhone("Björn Stenberg"));
Pause();
printf("\nTadaa. Done!\n");