Add missing libraries to examples' Makefiles
[dockapps.git] / yawmppp / src / dockapp / getmodemspeed.c
blob80e2ab10c35773402e590ace9c50a08a282158dd
1 #include <stdio.h>
3 int main(void) {
5 FILE *fd;
6 char temp[256];
8 fd = popen("tac /etc/ppp/connect-errors | grep '['CONNECT'|'CARRIER']' | head -1", "r");
10 while (fgets(temp, 256, fd)) {
11 printf("%s", temp);
14 pclose(fd);
16 return 0;