The third argument should be of type size_t.