man(1) Manual page archive


     CAST(2)                                                   CAST(2)

     Name
          cast - Defines a type cast in the name space converter set.

     Synopsis
          #include <ulib.h>

          void cast(char* k, char* match, char* conv)

     Description
          Cast installs a new entry in the converter set of the cur-
          rent name space to specify that the type k can be converted
          to the type match by means of the converter conv. After the
          call, k and match are considered compatible types if conv
          was nil. Otherwise, the system will start the execution of
          conv to obtain a temporary box with the data converted to
          the type match.

          Cast overwrittes any previous entry for the same k and
          match.

     Source
          /src/b/port/box.c

     See also
          uncast(2).