mirror of
https://github.com/rizinorg/shellforge4.git
synced 2026-11-08 17:48:11 -10:00
20 lines
229 B
C
Executable File
20 lines
229 B
C
Executable File
/*
|
|
* ShellForge example: declare and call a function
|
|
* Declarations in the global namespace must be static.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
static void foo(char *s, int l)
|
|
{
|
|
write(1, s, l);
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
foo("bar\n",4);
|
|
exit(0);
|
|
}
|
|
|
|
|