int main(void) { char buff[] = "hello buffer"; int res = 0; for (char *ptr = buff; *ptr != 0; ptr += 1) { res += *ptr; } return res; }