Pointers aren't arrays, arrays aren't pointers.
buf
is a pointer (that points to the first element of an array).