Checking strings in C

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 702 Views - Last Post: 06 June 2019 - 02:49 PM Rate Topic: -----

#16 german-one   User is offline

  • D.I.C Head
  • member icon

Reputation: 22
  • View blog
  • Posts: 57
  • Joined: 05-August 18

Re: Checking strings in C

Posted 06 June 2019 - 02:49 PM

View PostArtificialSoldier, on 06 June 2019 - 01:06 PM, said:

Man, I guess I assumed that int and longs were changed in 64-bit systems.

It's dependent on the implementation. Have a look at the 64-bit data models. As you can see the width of a long is different on 64-bit Linux and Windows. So, using strtoll() might or might not be pointless in your case, but it doesn't hurt.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2