- Add checkupdates function to count number of available updates - Add divider function to print divider symbol as argument - Update README with these modifications
13 lines
236 B
C
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);
|
|
}
|