I am trying to wrap this so it will (a) print to STDOUT (b) (if possible) 
print to a string:
void arf_fprint(FILE ** file*, const arf_t 
<http://fredrikj.net/arb/arf.html#c.arf_t>* x*)ΒΆ 
<http://fredrikj.net/arb/arf.html#c.arf_fprint>

Prints *x* as an integer mantissa and exponent to the stream *file*.


arf_t is made with  arf(x), that works.


this:

function arf_fprint(x::arb)

           a = arf(x); s=STDOUT

           ccall((:arf_fprint, :libarb), Void, (Ptr{s}, Ptr{arf_struct},), 
&s, &a)

       end
does this:
ERROR: TypeError: Ptr: in parameter, expected Type{T}, got Base.TTY
 in arf_fprint at none:3

Reply via email to