home *** CD-ROM | disk | FTP | other *** search
- @* An example of function declaration and parameter passing *@
-
- @* *@
- @* This is the entry point *@
- @* *@
- main()
- {
- printf("New record: %d\n",run_print("Bob",99));
- }
-
-
- @* *@
- @* This is our own function *@
- @* *@
- run_print(char *name, int record)
- {
- printf("Name: %s\nRecord: %d\n",name,record);
- record++;
-
- return record;
- }
-