Loading ...
Sorry, an error occurred while loading the content.

Re: [hackers-il] origins of strncpy

Expand Messages
  • omer mussaev
    ... Since when Guy Keren is microsoft? A link to MSDN was only to illustrate how UCS2 can be character as well. ===== -- o.m.
    Message 1 of 46 , Jan 19, 2005
    • 0 Attachment
      --- Elad Efrat <elad@...> wrote:

      >
      > > > In light of the above, Guy's advice sounds
      > pretty
      > > > reasonable, modulo s/char/TCHAR/g.
      > >
      > > No no... That's the whole point... sizeof should
      > refer to the
      > > _variable_, not to the _type_. I said that if
      > wchar use is an
      > > option, then it even makes sense to sizeof a
      > character array item.
      > > But _types_ should not be sizeof'd this way,
      > because the result is
      > > no better than well-documented constants.
      >
      > i thought we already agreed on this. are we not
      > taking
      > programming advices from microsoft? :)

      Since when Guy Keren is microsoft? A link to MSDN
      was only to illustrate how UCS2 can be character
      as well.


      =====
      --
      o.m.



      __________________________________
      Do you Yahoo!?
      Yahoo! Mail - Find what you need with new enhanced search.
      http://info.mail.yahoo.com/mail_250
    • omer mussaev
      ... Since when Guy Keren is microsoft? A link to MSDN was only to illustrate how UCS2 can be character as well. ===== -- o.m.
      Message 46 of 46 , Jan 19, 2005
      • 0 Attachment
        --- Elad Efrat <elad@...> wrote:

        >
        > > > In light of the above, Guy's advice sounds
        > pretty
        > > > reasonable, modulo s/char/TCHAR/g.
        > >
        > > No no... That's the whole point... sizeof should
        > refer to the
        > > _variable_, not to the _type_. I said that if
        > wchar use is an
        > > option, then it even makes sense to sizeof a
        > character array item.
        > > But _types_ should not be sizeof'd this way,
        > because the result is
        > > no better than well-documented constants.
        >
        > i thought we already agreed on this. are we not
        > taking
        > programming advices from microsoft? :)

        Since when Guy Keren is microsoft? A link to MSDN
        was only to illustrate how UCS2 can be character
        as well.


        =====
        --
        o.m.



        __________________________________
        Do you Yahoo!?
        Yahoo! Mail - Find what you need with new enhanced search.
        http://info.mail.yahoo.com/mail_250
      Your message has been successfully submitted and would be delivered to recipients shortly.