bool putNumericArgument(char**& av, ClumpletWriter& spb, unsigned int tag) { if (! *av) return false; int n = atoi(*av++); spb.insertInt(tag, n); return true; }
bool putIntArgument(char**& av, ClumpletWriter& spb, unsigned int tag) { if (! *av) return false; SLONG n; if (sscanf(*av++, "%" SLONGFORMAT, &n) != 1) (Arg::Gds(isc_fbsvcmgr_bad_arg) << av[-2]).raise(); spb.insertInt(tag, n); return true; }
bool putNumericArgument(char**& av, ClumpletWriter& spb, unsigned int tag) { if (! *av) return false; char* err = NULL; SLONG n = strtol(*av++, &err, 10); if (err && *err) { (Arg::Gds(isc_fbsvcmgr_bad_arg) << av[-2]).raise(); } spb.insertInt(tag, n); return true; }
bool putOption(char**&, ClumpletWriter& spb, unsigned int tag) { spb.insertInt(isc_spb_options, tag); return true; }