No, memset works only with 0, any other value requires the good old for(...) loop.