summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-05-16 18:50:12 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-05-16 18:50:12 +0200
commit6b6a28d47f0238a8700a35d8648cb587ec49a79b (patch)
treee87561de27c8dbf72e831262348c35df3197e59a /lib.c
parentse ne prevere, grem se učit kemijo (diff)
downloadprijave-6b6a28d47f0238a8700a35d8648cb587ec49a79b.tar
prijave-6b6a28d47f0238a8700a35d8648cb587ec49a79b.tar.gz
prijave-6b6a28d47f0238a8700a35d8648cb587ec49a79b.tar.bz2
prijave-6b6a28d47f0238a8700a35d8648cb587ec49a79b.tar.lz
prijave-6b6a28d47f0238a8700a35d8648cb587ec49a79b.tar.xz
prijave-6b6a28d47f0238a8700a35d8648cb587ec49a79b.tar.zst
prijave-6b6a28d47f0238a8700a35d8648cb587ec49a79b.zip
Diffstat (limited to '')
-rw-r--r--lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 2dea5a9..0df787d 100644
--- a/lib.c
+++ b/lib.c
@@ -71,3 +71,8 @@ static char * htmlspecialchars (const char * i) { /* remember to free the output
o[w++] = '\0';
return o;
}
+static char * hscf (char * i) { // htmlspecialchars and free
+ char * hsc = htmlspecialchars(i);
+ free(i);
+ return hsc;
+}