Mercurial > hg > toybox
view lib/net.c @ 1542:fd587c7872a9 draft
Attached are new toys TR and CRONTAB.
*tr.c*: It translate, squezze and delete characters.
Supported classes are alpha, alnum, digit, lower, upper
space, blank, puct, cntrl and xdigit.
*crontab.c*: Companion of crond. It maintains crontab files.
author | Ashwini Sharma |
---|---|
date | Thu, 30 Oct 2014 18:36:09 -0500 |
parents | e11684e3bbc5 |
children |
line wrap: on
line source
#include "toys.h" int xsocket(int domain, int type, int protocol) { int fd = socket(domain, type, protocol); if (fd < 0) perror_exit("socket %x %x", type, protocol); return fd; }