Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is use for "static void"

39 views
Skip to first unread message

fl

unread,
May 28, 2012, 3:51:49 PM5/28/12
to
Hi,
I get some C function. I do not understand why these functions are
defined as:

static void VitDec(int nl, struct pl_str *pl)


Could you explain it to me? Thanks.

Dag-Erling Smørgrav

unread,
May 28, 2012, 4:12:25 PM5/28/12
to
fl <rxj...@gmail.com> writes:
> static void VitDec(int nl, struct pl_str *pl)

As you'd find out from reading any semi-decent C textbook: "void" means
the function does not return a value, and "static" in this context means
that it can not be referenced from outside the source file in which it
is defined.

A more-than-decent textbook, such as Kernighan and Ritchie's _The C
Programming Language, 2nd ed_ will provide plenty of additional detail.

DES
--
Dag-Erling Smørgrav - d...@des.no
0 new messages