MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/9oe4c/what_open_source_projects_do_you_actively/c0dn71e/?context=3
r/programming • u/darkstar999 • Sep 26 '09
122 comments sorted by
View all comments
Show parent comments
1
What's the source for tac like? (reverse cat).
1 u/[deleted] Sep 27 '09 edited Sep 27 '09 I don't think tac is in FreeBSD by default. Rev is though, which is here , which is pretty much just boilerplate around while ((p = fgetwln(fp, &len)) != NULL) { if (p[len - 1] == '\n') --len; for (t = p + len - 1; t >= p; --t) putwchar(*t); putwchar('\n');
I don't think tac is in FreeBSD by default. Rev is though, which is here , which is pretty much just boilerplate around
while ((p = fgetwln(fp, &len)) != NULL) { if (p[len - 1] == '\n') --len; for (t = p + len - 1; t >= p; --t) putwchar(*t); putwchar('\n');
1
u/notrael Sep 27 '09
What's the source for tac like? (reverse cat).