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 the 5 articles in this topic
Showing 5 of 919 articles.
Currently 4 other people reading this forum.


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

Login to reply

👍?
helpful
10:43am Thu 25th Aug, Simon E.

Hi Are we allowed to use regex.h? It's not provided as part of ANSI C but is part of POSIX, which I'm assuming will be available if the project is compiled on a Linux system. Thanks


SVG not supported

Login to reply

👍?
helpful
11:11am Thu 25th Aug, Christopher M.

"Simon Eason" <23*8*4*[email protected]*u*e*t*u*a*e*u*a*> wrote:
> Are we allowed to use regex.h? It's not provided as part of ANSI C but is part of POSIX, which I'm assuming will be available if the project is compiled on a Linux system.
Hi Simon, Yes, you may use it, but I'd strongly encourage you to reconsider your approach - using regex for either the reading/parsing of the 2 input files, or matching the 'current' date/time against crontab entries is a huge overkill, and not a very good approach for something requiring only the matching of integers.


SVG not supported

Login to reply

👍?
helpful
11:18am Thu 25th Aug, Simon E.

I'm planning on using it to ensure the contents of the input files match a valid structure as stated in the outline. All my other interpreting of files I'm planning on doing manually


SVG not supported

Login to reply

👍?
helpful
11:20am Thu 25th Aug, Christopher M.

"Simon Eason" <23*8*4*[email protected]*u*e*t*u*a*e*u*a*> wrote:
> I'm planning on using it to ensure the contents of the input files match a valid structure as stated in the outline. All my other interpreting of files I'm planning on doing manually
Do you mean that the non-comment lines have the correct number of columns?


SVG not supported

Login to reply

👍?
helpful
11:26am Thu 25th Aug, Simon E.

Yes, and that the columns have correct values (i.e. a correct number of digits or characters)

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