type=module
superclass=
included=
extended=
library=dl

UNIX  [[man:dlopen(3)]]  Windows  LoadLibrary() ʤɤΥʥߥå󥫤ؤ٥
󥿡ե󶡤⥸塼Ǥ

⥸塼 DL  3 ĤΥ饹äƤޤ

: [[c:DL::Symbol]] 
  ʥߥå饤֥δؿΥåѡ饹Ǥ
: [[c:DL::PtrData]] 
  C Υݥ󥿤Τ褦ʥ֥åɽ饹Ǥ
: [[c:DL::Handle]] 
  ץ󤵤줿ʥߥå饤֥ɽ饹Ǥ


=== Type specifiers

ץȥפϰʲηҤޤץȥפκǽǤ
η̣ޤĤǤϳưη̣ޤ

: C
    ʸ (char)
: c
    ʸؤݥ (char *)
: H
    short   (short)
: h
    short ؤݥ (short *)
: I
     (char, short, int)
: i
    ؤݥ (char *, short *, int *)
: L
    long int
: l
    long int ؤΥݥ (long *)
: F
    ¿ (float)
: f
    ¿ؤΥݥ (float *)
: D
    ¿ (double)
: d
    ¿ؤΥݥ(double *)
: S
     (immutable) ʸ (const char *)
: s
    ѹǽ(mutable)ʸ (char *)
: A
     (const type[])
: a
    ѹǽ (mutable)  (type[])
: P
    ݥ (void *)
: p
    ѹǽ (mutable) ʥݥ (void *)
: 0
    void ؿ (ϥץȥפκǽʸǤʤФʤʤ)

cbtype Ϸ 0, C, I, H, L, F, D, S  P ޤ
㤨,

  DL.callback('IPP'){|ptr1,ptr2|
    str1 = ptr1.ptr.to_s
    str2 = ptr2.ptr.to_s
    str1 <=> str2
  }

=== Ruby Υ֥Ȥ C ηؤѴ

[[m:DL.#callback]]  [[m:DL::Handle#sym]] ǻꤷ
Ҥ˽ä Ruby Υ֥Ȥ C ηߤѴޤ
