Problem with pj_ansi_snprintf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On windows, when I use (len = 0, the case of empty pj_str)
    printf("%.*s%s<%s:>\n",len,(char *)NULL,  (len?" " : ""), "sip");
I obtain and it's correct:
    <sip:>

when I use
    pj_ansi_snprintf(ptr, 40, "%.*s%s<%s:>", len, (char *)NULL,  (len?" 
" : ""),"sip");
    printf("%s", ptr);
I obtain and it's correct:
    <sip:>

On nintendo DS, when
I use the same statement, I obtain :
    - printf -> (null)<sip:>
    - pj_ansi_snprintf -> (null)<sip:>

Where do you think is the problem ?
    - libc ?
    - gcc ?

Because this problem I must define force_client field :-(

Thanks

Samuel



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux