Files
slstatus/components/check_updates.c
Sravan Balaji 20beb5ca3e 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
2020-08-02 11:37:37 -04:00

13 lines
236 B
C

/* 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);
}