Checkupdates & Divider Functions

- Add checkupdates function to count number of available updates
- Add divider function to print divider symbol as argument
- Update README with these modifications
This commit is contained in:
Sravan Balaji
2020-08-02 11:22:39 -04:00
parent 91c8d8a382
commit 20beb5ca3e
6 changed files with 55 additions and 11 deletions

View File

@@ -0,0 +1,12 @@
/* See LICENSE file for copyright and license details. */
#include <stdio.h>
#include <string.h>
#include "../slstatus.h"
const char *
check_updates(void)
{
const char *cmd = "checkupdates | wc -l";
return run_command(cmd);
}