Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
4
Task/Function-prototype/Julia/function-prototype-1.julia
Normal file
4
Task/Function-prototype/Julia/function-prototype-1.julia
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
julia > function mycompare(a, b)::Cint
|
||||
(a < b) ? -1 : ((a > b) ? +1 : 0)
|
||||
end
|
||||
mycompare (generic function with 1 method)
|
||||
1
Task/Function-prototype/Julia/function-prototype-2.julia
Normal file
1
Task/Function-prototype/Julia/function-prototype-2.julia
Normal file
|
|
@ -0,0 +1 @@
|
|||
julia> mycompare_c = @cfunction(mycompare, Cint, (Ref{Cdouble}, Ref{Cdouble}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue