00001 /* 00002 * 'foo_void_function()' - Do foo with bar. 00003 */ 00004 00005 void 00006 foo_void_function(int one, /* I - Integer */ 00007 float *two, /* O - Real number */ 00008 const char *three) /* I - String */ 00009 { 00010 if (one) 00011 { 00012 puts("Hello, World!"); 00013 } 00014 else 00015 puts(three); 00016 00017 *two = 2.0f; 00018 } 00019 00020 00021 /* 00022 * 'foo_float_function()' - Do foo with bar. 00023 */ 00024 00025 float /* O - Real number */ 00026 foo_float_function(int one, /* I - Integer */ 00027 const char *two) /* I - String */ 00028 { 00029 if (one) 00030 { 00031 puts("Hello, World!"); 00032 } 00033 else 00034 puts(two); 00035 00036 return (2.0f); 00037 } 00038 00039 00040 /* 00041 * 'foo_default_string()' - Do something with a defaulted string arg. 00042 */ 00043 00044 int /* O - Integer value */ 00045 foo_default_string(int one, /* I - Integer */ 00046 const char *two = "2") 00047 /* I - String */ 00048 { 00049 if (one) 00050 { 00051 puts("Hello, World!"); 00052 } 00053 else 00054 puts(two); 00055 00056 return (2); 00057 } 00058 00059 00060 /* 00061 * 'foo_default_int()' - Do something with a defaulted int arg. 00062 */ 00063 00064 int /* O - Integer value */ 00065 foo_default_int(int one, /* I - Integer */ 00066 int two = 2) /* I - Integer */ 00067 { 00068 if (one) 00069 { 00070 puts("Hello, World!"); 00071 } 00072 else 00073 puts(two); 00074 00075 return (2); 00076 }