PLEASE NOTE: the upgrades to this server, secure.csse.uwa.edu.au, have not yet been completed.
Hopefully the changes will be completed on THURSDAY 8th December.
Web-based programs, such as csmarks, cssubmit, and the help fora, will be unavailable at some time on Thursday 8th.
  It's UWAweek 49

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying selected article
Showing 1 of 919 articles.
Currently 5 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful
3:46pm Wed 7th Sep, Christopher M.

"Gihad Coorey" <23*9*7*[email protected]*u*e*t*u*a*e*u*a*> wrote:
> Sorry I'm still not quite clear on this; what would you effectively be asking the compiler/processor to do if you just passed endptr instead of &endptr to strtol?
If you just pass endptr to the function, a copy of endptr will be passed (just the same as if you just passed an integer, or the result of any expression). If the function tried to modify that parameter, it would modify the *copy* of the original value, not the original value itself. When the function returned, the value of endptr would remain unchanged.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy