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