# The SML/NJ Library Reference Manual

### The `FORMAT` signature

#### Synopsis

> `signature `FORMAT`
> `

#### Interface

> `datatype fmt_item
> = ATOM of Atom.atom
> | LINT of LargestInt.int
> | INT of Int.int
> | LWORD of LargestWord.word
> | WORD of Word.word
> | WORD8 of Word8.word
> | BOOL of bool
> | CHR of char
> | STR of string
> | REAL of Real.real
> | LREAL of LargestReal.real
> | LEFT of (int * fmt_item)
> | RIGHT of (int * fmt_item)
> exception BadFormat
> exception BadFmtList
> val format : string -> fmt_item list -> string
> val formatf : string -> (string -> unit) -> fmt_item list -> unit
> val sscanf : string -> string -> fmt_item list option
> val scanf : string -> (char,'a) StringCvt.reader -> (fmt_item list,'a) StringCvt.reader
> `

#### Description

`datatype fmt_item`
`exception BadFormat`
`exception BadFmtList`
`format s l`
  explain the use and semantics of format HERE.
`formatf s f l`
  explain the use and semantics of formatf HERE.
`sscanf s t`
  explain the use and semantics of sscanf HERE.
`scanf s re`
  explain the use and semantics of scanf HERE.

[ INDEX | TOP | Parent | Root ]

Last Modified May 29, 1996
Copyright © 1996 AT&T Research