>1. The + and - modifiers to %c don't seem to work in combination, even though 
>it seems reasonable that one might want to decode a signed value in big endian 
>order. Separately they work fine.

(ITYM "little endian"...)

Seems working to me:

Pike v7.8 release 350 running Hilfe v3.5 (Incremental Pike Frontend)
> array_sscanf("\xff\xf0","%+-2c");
(1) Result: ({ /* 1 element */
                -3841
            })
> array_sscanf("\xff\xf0","%-+2c");
(2) Result: ({ /* 1 element */
                -3841
            })
>
  • pos... H. William Welliver III
    • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
      • ... Bill Welliver
        • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
          • ... Bill Welliver
            • ... Mirar @ Pike developers forum
              • ... Bill Welliver
                • ... Mirar @ Pike developers forum
                • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
                • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
        • ... Mirar @ Pike developers forum
          • ... Bill Welliver

Reply via email to