Contents page

Rules for Tools/saveclip()


saveclip()
SYNOPSIS
     void saveclip(long file, struct Clip *clip)

ARGUMENTS
    `long file'
          File pointer.

    `struct Clip  *clip'
          Clip to save to file.

DESCRIPTION
     `saveclip()' writes a Clip to disk.  `file' is a Bars&Pipes
     buffered file io pointer that must be initialized with a call to
     `fastopen()' .  `clip' points to the Clip to save.

     Because `saveclip()' makes AmigaDos calls, you must call it from a
     Process, not a Task.  If you need to call it from a Task, nest the
     call to `saveclip()' within a `doscall()' command:
          (*functions->doscall)(functions->saveclip,file,clip)

SEE
     See loadclip().