mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 15:51:41 +03:00
Merge pull request #227 from dacechavez/master
Fixed 2 typos around function pointers
This commit is contained in:
commit
5486b435f6
@ -484,7 +484,7 @@ int area(const rect *r)
|
||||
///////////////////////////////////////
|
||||
/*
|
||||
At runtime, functions are located at known memory addresses. Function pointers are
|
||||
much likely any other pointer (they just store a memory address), but can be used
|
||||
much like any other pointer (they just store a memory address), but can be used
|
||||
to invoke functions directly, and to pass handlers (or callback functions) around.
|
||||
However, definition syntax may be initially confusing.
|
||||
|
||||
@ -506,7 +506,7 @@ Function pointers are usually typedef'd for simplicity and readability, as follo
|
||||
|
||||
typedef void (*my_fnp_type)(char *);
|
||||
|
||||
// The used when declaring the actual pointer variable:
|
||||
// Then used when declaring the actual pointer variable:
|
||||
// ...
|
||||
// my_fnp_type f;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user