Message from C, C++ talks

June 2019

— Hello guys!

— Can anyone suggest me books for build logics in c++?

— You might need to use assembler for this

— Unless you manage to get a port of clang onto it


Is there any reason people not using strlcat, strlcpy etc over old strcpy etc? (While doing "she" code)

Why not use safe practices?

— Http://

— In cpp you should use the std:: tools for some safety

— I mean in C

— C++ std::string is decent already

— Pascal strings have less overhead so thats nice (they are very restriced tho)

— Lol...

— I am actually doing a test against busybox yes vs GNU yes...

— I wonder why and how GNU yes is way faster than busybox yes

— Maybe buffers

— B17wiseeula47 ~ % cat yes.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main() {
char yes[2] = {'y', '\n'};
char *buf = malloc(8192);
int buff = 0;
while (buff < 8192) {
memcpy(buf+buff, yes, 2);
buff += 2;
while(fwrite(1, buf, 8192));
return 1;

Message permanent page