It's UWAweek 9 (1st 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 1 other person reading this forum.


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
12:47pm Mon 2nd Oct, Christopher M.

"Lewei Xu" <23*0*0*8@s*u*e*t*u*a*e*u*a*> wrote:
> Thanks for pointing this out, I was just about to ask about this. As mkdir is a utility program that is called in the command line, how is it possible to use it in the C program? Could you highlight an exmaple of each in case I end up doing something stupid in my program?
We can trivially call a command-line utility from within a C program by using for() and execl(). But the mkdir program does little more than call the mkdir() system-call, which we can do from within our own program. If the action performed by an external program was far more significant, such as sort or zip, then it'd make far more sense to spawn the external program.

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  5:07AM Sep 06 2023
Privacy policy