PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Examples
C Intro
Functions
Function with Parameter.c
1
/*
2
Function with Parameter.c
3
4
Call a function that displays a value passed to it with a parameter.
5
6
http://learn.parallax.com/propeller-c-functions/function-parameter
7
*/
8
9
#include "
simpletools.h
"
// Include simpletools
10
11
void
value(
int
a);
// Function prototype
12
13
int
main
()
// main function
14
{
15
value(6);
// Call value function
16
}
17
18
void
value(
int
a)
// value function
19
{
20
print
(
"The value is: a = %d\n"
, a);
// Display a single value
21
}
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
print
int print(const char *format,...) __attribute__((format(printf
Print format "..." args to the default simple terminal device. The output is limited to 256 bytes.
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17