code: function(r, ptr, chr, len) {
          var i;
          for (i=0;i<len;i++) {
              r[ptr+i] = chr;
          }
      }
docs: replicate c function
  @param array     return (by reference)
  @param string    char to fill
  @param int       length to fill