char buf[5]; void setup() { fooFunc(); } void loop() { } char* fooFunc() { return buf; }