3 ms·
GL_ARB_robustness? I thought this might be satire or something, but it actually exists: http://www.opengl.org/registry/specs/ARB/robustness.txt Apparently
by prewett 16y ago
GL_ARB_robustness? I thought this might be satire or something, but it actually exists:
http://www.opengl.org/registry/specs/ARB/robustness.txt
Apparently it does the same thing for OpenGL that strncpy does for strcpy.
- palish 16y agoYou mean strcpy_s?
- owenmarshall 16y agoOpenBSD po-ta-to, Windows po-tah-to.
- palish 16y agoIt was tongue-in-cheek. I think it's silly that Microsoft adds "_s" to a lot of the standard functions; it makes porting more difficult. Of course, it was sillier not to write "strcpy" as strcpy(dest,maxSize,src) from the beginning. And "memcpy" as memcpy(dest,maxSize,count,src). But I guess whoever wrote those weren't really expecting them to be one of the most frequently used functions in computer programming history...