PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Examples
C Intro
Functions
Function Call.c
1
/*
2
Function Call.c
3
4
Send a simple hello message to the console, but use a function to display
5
one of the messages.
6
7
http://learn.parallax.com/propeller-c-functions/reusable-code-functions
8
*/
9
10
#include "simpletools.h"
// Include simpletools
11
12
void
hello(
void
);
// Function prototype
13
14
int
main
()
// main function
15
{
16
hello();
// Call hello function
17
print(
"Hello again from main!\n"
);
// Display message
18
}
19
20
void
hello(
void
)
// Hello function
21
{
22
print(
"Hello from function!\n"
);
// Display hello message
23
pause(500);
// Pause 1/2 second
24
}
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Sat Aug 27 2016 00:58:03 for PropWare by
1.8.12