| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
|
|
| |
article (#2739)
* Make reference link in footer/summary link to Stack Overflow article
* remove name from list of contributors
|
| |
|
|
|
| |
Original link displays "This file has moved to process/coding-style.rst"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Space should be removed.
Before:
// Access struct members with .
After:
// Access struct members with.
C should be capitalized.
Before:
// there is no Boolean type in c. We use ints instead.
After:
// there is no Boolean type in C. We use ints instead.
Before:
Header files are an important part of c as they allow for the connection of c
After:
Header files are an important part of C as they allow for the connection of C
Before:
Header files are syntactically similar to c source files but reside in ".h"
After:
Header files are syntactically similar to C source files but reside in ".h"
Before:
files. They can be included in your c source file by using the precompiler
After:
files. They can be included in your C source file by using the precompiler
Before:
as the c file.
After:
as the C file.
Before:
/* should instead be put in a c file. */
After:
/* should instead be put in a C file. */
Before:
/* Beyond the above elements, other definitions should be left to a c source */
After:
/* Beyond the above elements, other definitions should be left to a C source */
Before:
/* a header file but instead put into separate headers or a c file. */
After:
/* a header file but instead put into separate headers or a C file. */
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* c: fix using pointer before introduced.
* c: init array with string literals not introduced.
To avoid using the concept pointer before it has been introduced,
previously it is changed to array.
But as @geoffliu pointed out,
array initialization using string literals is not introduced either.
So this commit uses neither pointer nor array.
Discussing `i++` and `++i` does not need to involve pointer or array.
* c: use `var = value` instead of `->`.
`->` is typically used for functions.
Thanks, @vendethiel.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
removed whitespaces all over document
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
some type mistakes.
It is: syntaxtically
It should be: syntactically
It is: iLoveC
Better: ILoveC
It is: passed to ≈the function
It should be: passed to the function
It is: error
It should be: Error
|
|\
| |
| | |
[C/en] Added tidbit about fall-though in switch statements.
|
| |
| |
| |
| | |
Another pitfall, as not all languages have fall-through in switches.
|
|/
|
|
|
|
|
|
|
| |
The current example seems to be trying to set a size for a char buffer,
use fgets to populate that buffer, and then use strtoul to convert the
char content to an unsigned integer. However, this doesn't work as
intended (in fact, it results in printing "sizeof array = 0"), and so
adapt to a simpler fscanf example. Also remove some ambiguous language
in the example output.
|
| |
|
|
|
| |
Added additional info on dynamically allocated arrays in C.
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
c.html.markdown
|
| |\
| | |
| | | |
[c/en] clarify common tripping point of newbies
|
| | |
| | |
| | |
| | |
| | |
| | | |
int foo () {
printf("bar\n");
int x; // this is not valid in C89+
}
|
| |\ \
| | | |
| | | | |
[c/en] clarify that args' names are not required in proto
|
| | |/
| | |
| | | |
with obligatory conventional warning
|
| |\ \
| | |/
| |/| |
Translation fixes and extra information
|
| | | |
|
| |\ \
| | | |
| | | | |
example function added for call by reference
|
| | | | |
|
| | | | |
|
| | | | |
|
| | |/ |
|
| |/ |
|
| |
| |
| |
| | |
Removed the separate code section for header files
|
| |
| |
| |
| |
| | |
+ Added a header file title
* Changed ```c to ```h
|
| |
| |
| |
| |
| |
| | |
Added a section for header files.
Included a discussion of what belongs in a header file and what does
not.
|
| |
| |
| |
| | |
This reverts commit e1ac6209a8d3f43e7a018d79454fb1095b3314c0.
|
|/
|
|
|
|
| |
Added a section for header files.
Included a discussion of what belongs in a header file and what does
not.
|
| |
|
|
|
|
| |
Fixed Issue #1170
Variable size array, user size input added.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
0x0f is of type int, for 32-bit int the result is 0xfffffff0.
31'st bit is the sign bit of a 32-bit wide int.
|
| |
|
|
|
|
| |
was referring to the wrong function and variable.
|
| |
|
| |
|
| |
|