../lib/human.c

  475  int
  476  human_options (char const *spec, bool report_errors, uintmax_t *block_size)
  477  {
  478    int opts;
  479    strtol_error e = humblock (spec, block_size, &opts);

  480    if (*block_size == 0)
  481      {
  482        *block_size = default_block_size ();
  483        e = LONGINT_INVALID;
  484      }
  485    if (e != LONGINT_OK && report_errors)
  486      STRTOL_FATAL_ERROR (spec, _("block size"), e);
  487    return opts;
  488  }
最終更新:2011年06月26日 11:12