It's UWAweek 30 (2nd semester, week 1)

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 1168 articles.
Currently 4 other people reading this forum.


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported

Login to reply

👍?
helpful

ANONYMOUS wrote:
> I was just wondering if I was able to change the return type of read_sysconfig to int to be able to return a value of how many devices I have read. > > I plan to use this to make sure I am not reading garbage when I use the array of device structures to print out its contents and when accessing the information within these structures. > > The parameters in the starting code for read_sysconfig also used argv[0] as a parameter but I feel as though the name of the program is not needed for this function. Can I also change this similarly or does the project have to stick to the template provided?
You're welcome to change function names, parameters, and return types as you wish (or not even use them). DO NOT change the numeric preprocessor constants near the top of the file, else your code won't match the sample solution. It's often a good practice to print a program's name in its error messages, and argv[0] provides that for you.

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  7:24AM Jul 25 2024
Privacy policy