News for hackers. Stuff that matters.
Re:The Safe C Library (2009) by cvwright on Wednesday April 12, 2017 @09:57PM (#14103492)
> Now, one approach is to make a struct buffer {char ptr; size_t len;}.

A "fat" pointer. That's essentially what the Cello project does [1]. The author has pulled together some crazy hacks to make this approach accessible in C. Including, apparently his own version of many standard library routines. Crazy, but very interesting. Discussed on HN yesterday/today: https://news.ycombinator.com/item?id=14091630

[1] http://libcello.org/learn/a-fat-pointer-library

There are no comments on this comment yet.