diff options
author | sergiokas <dev@sergiokas.com> | 2013-07-04 00:00:49 -0300 |
---|---|---|
committer | sergiokas <dev@sergiokas.com> | 2013-07-04 00:00:49 -0300 |
commit | 0376e0807a796b9c38285e908589b8ef3f2ded21 (patch) | |
tree | 36fea71027d5889b66a2b232166c90eaba4e59e8 | |
parent | 3308c9c015e130b4e813f998898852d9fc2d7e05 (diff) |
Update c.html.markdown
-rw-r--r-- | c.html.markdown | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/c.html.markdown b/c.html.markdown index fba587fc..23d97560 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -341,11 +341,14 @@ void str_reverse_through_pointer(char * str_in) { As long as function signatures match, you can assign any function to the same pointer. Useful for passing handlers (or callback functions) around. Function pointers are usually typedef'd for simplicity and readability, as follows: +*/ typedef void (*my_fnp_type)(char *); -... -my_fnp_type f; -*/ + +// The used when declaring the actual pointer variable: +// ... +// my_fnp_type f; + /////////////////////////////////////// // User-defined types and structs |