someblocks

default description
git clone https://git.awy.one/someblocks.git
Log | Files | Refs | README | LICENSE

commit ed1e85d804242dca7feec6ef493d60051822498b
parent c6d81febf625692c6afecfa5ea1489fe5a9d2be4
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Mon, 18 Apr 2022 09:27:05 -0500

use dprintf() instead of write() calls

Diffstat:
Msomeblocks.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/someblocks.c b/someblocks.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 200809L #include<stdlib.h> #include<stdio.h> #include<string.h> @@ -142,9 +143,7 @@ void psomebar() return; } } - write(somebarFd, "status ", 7); - write(somebarFd, statusstr[0], strlen(statusstr[0])); - write(somebarFd, "\n", 1); + dprintf(somebarFd, "status %s\n", statusstr[0]); }