O'Reilly logo

packetC Programming by Dwight Mulcahy, Ralph Duncan, Peder Jungck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  7

image

Functions

Function Constructs

Just like C, a packetC function is a discrete subprogram that can be invoked from multiple places in the program text and that returns a value (which may be of type void). The function call or function enable can associate a set of values with a corresponding set of variables declared as the function's parameters, which act as variables local to the called function. C programmers will find packetC functions to play the same role and operate in a familiar manner. In addition, functions play new roles in packetC in support of parallel processing and scoping for the purposes of data hiding.

As functions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required