aboutsummaryrefslogtreecommitdiff
path: root/content/en/docs
diff options
context:
space:
mode:
Diffstat (limited to 'content/en/docs')
-rw-r--r--content/en/docs/Contributions/_index.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/en/docs/Contributions/_index.md b/content/en/docs/Contributions/_index.md
index 08fdb32..b5ffa5f 100644
--- a/content/en/docs/Contributions/_index.md
+++ b/content/en/docs/Contributions/_index.md
@@ -28,22 +28,31 @@ following exceptions:
- Soft tabs are to be used instead of hard tabs
- A space is to be inserted between a pointer and its object name upon
declaration or in function signatures. Example:
+
```C
int * a;
```
+
instead of
+
```C
int *a;
```
+
- Don't explicitly cast malloc, but do
+
```C
ptr = malloc(sizeof(*ptr) * len);
```
+
- When checking for invalid pointers use
+
```C
if (ptr == NULL)
```
+
instead of
+
```C
if (!ptr)
```