summaryrefslogtreecommitdiff
path: root/zola/content/articles
diff options
context:
space:
mode:
Diffstat (limited to 'zola/content/articles')
-rw-r--r--zola/content/articles/_index.md1
-rw-r--r--zola/content/articles/safer-pointers.md2
-rw-r--r--zola/content/articles/typedef-or-not.md11
3 files changed, 13 insertions, 1 deletions
diff --git a/zola/content/articles/_index.md b/zola/content/articles/_index.md
index a4e92e5..21ac4d4 100644
--- a/zola/content/articles/_index.md
+++ b/zola/content/articles/_index.md
@@ -1,3 +1,4 @@
+++
title = "Articles"
+sort_by = "update_date"
+++
diff --git a/zola/content/articles/safer-pointers.md b/zola/content/articles/safer-pointers.md
index bbefdad..1a1b55e 100644
--- a/zola/content/articles/safer-pointers.md
+++ b/zola/content/articles/safer-pointers.md
@@ -5,7 +5,6 @@ date = 2024-11-26
authors = ["Nicolás Dato"]
[taxonomies]
-Categories=["Software Development"]
Tags=["C", "Patterns", "Pointers"]
+++
@@ -21,6 +20,7 @@ To reduce errors, and make them safer to use, I propose the following 4 tips:
4. Every time a pointer is passed to another function, deciding who *owns* the pointer
### Example
+
```C
#include <stdio.h>
#include <stdlib.h>
diff --git a/zola/content/articles/typedef-or-not.md b/zola/content/articles/typedef-or-not.md
new file mode 100644
index 0000000..9903d96
--- /dev/null
+++ b/zola/content/articles/typedef-or-not.md
@@ -0,0 +1,11 @@
++++
+title = "Using typedef or not"
+description = "TODO"
+date = 2024-12-20
+draft = true
+authors = ["Nicolás Dato"]
+
+[taxonomies]
+Tags=["C"]
++++
+