3 ms·
> 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 p
by cvwright 10y ago
> 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 https://news.ycombinator.com/item?id=14091630
[1] http://libcello.org/learn/a-fat-pointer-library http://libcello.org/learn/a-fat-pointer-library