c: reorder paragraphs

content about `static` are inserted into the wrong place.
This commit is contained in:
Jakukyo Friel 2014-02-14 17:22:38 +08:00
parent 6dc9945697
commit 4c25ac36c6

View File

@ -454,6 +454,12 @@ void str_reverse(char *str_in)
} }
} }
/*
char c[] = "This is a test.";
str_reverse(c);
printf("%s\n", c); // => ".tset a si sihT"
*/
//if referring to external variables outside function, must use extern keyword. //if referring to external variables outside function, must use extern keyword.
int i = 0; int i = 0;
void testFunc() { void testFunc() {
@ -467,11 +473,7 @@ void testFunc() {
} }
//**You may also declare functions as static to make them private** //**You may also declare functions as static to make them private**
/*
char c[] = "This is a test.";
str_reverse(c);
printf("%s\n", c); // => ".tset a si sihT"
*/
/////////////////////////////////////// ///////////////////////////////////////
// User-defined types and structs // User-defined types and structs