C Programming II
Level 2 (CQFW Level 5), 10 Credits.
- No upcoming courses.
Register interest in this course...
Let us keep you up to date about when the course will run again.
This course is ideal for the student who has a good knowledge of the CProgramming language. This course assumes the student has covered a large number of the topics covered in the C Programming I module.
Who is this course for?
This module is designed to extend the student’s knowledge of the C Programming language by using dynamic data structures. The UNIX operating system is written inC and this course shows the student how to tailor the user’s environment using operating system functions.
Learning and Teaching
This module includes a mix of traditional lectures and laboratory sessions. Each meeting starts with a lecture and finishes with a laboratory session.
Coursework and Assessment
To award credits we need to have evidence of the knowledge and skills you have gained or improved. Some of this has to be in a form that can be shown to external examiners so that we can be absolutely sure that standards are met across all courses and subjects.
During the course, you will be given assignments to be submitted to the course tutor. At the end of the course, there will be a class test.
The most important element of assessment is that it should enhance your learning. Our methods are designed to increase your confidence and we try very hard to devise ways of assessing you that are enjoyable and suitable for adults with busy lives.
- Internal and user defined macros in Makefiles
- Use of the typedef statement to define new data types
- Dynamic allocation of memory for system data structures using malloc function
- Dynamic freeing of memory using the free function
- Disable echoing of characters for a password by setting a flag in the termios data structure in the header file termios.h
- Use of Database Management (DBM) functions declared in ndbm.h to access keyed databases
- Extracting information about a file using the stat data structure in stat.h
- Use of getpwuid function to convert a User Identifier ( UID ) to a username
- Use of getgrgid function to convert a Group Identifier ( GID ) to a groupname
- Use of time function to get current time in seconds since 1 Jan 1970
- Use of localtime function which convert a time in seconds since 1 Jan 1970 to a tm structure defined in time.h which contains fields such as hour, minute, year etc.
- Creation and manipulation of a dynamic data structure such as a linked list using the malloc function
Kernighan, B.W. and Ritchie, D.M. (1988) C Programming Language. Prentice Hall.
Library and Computing Facilities
As a student on this course you are entitled to join and use the University library and computing facilities. You can find out more about these facilities on our website www.cf.ac.uk/learn under Student Information, or by ringing the Centre on
(029) 2087 0000.
Accessibility of Courses
Our aim is access for all. We aim to provide a confidential advice and support service for any student with a long term medical condition, disability or specific learning difficulty. We are able to offer one-to-one advice about disability, pre-enrolment visits, liaison with tutors and co-ordinating lecturers, material in alternative formats, arrangements for accessible courses, assessment arrangements, loan equipment and Dyslexia screening. Please contact the Centre on (029) 2087 0000 for an information leaflet.
A range of further information can be found on our web site www.cf.ac.uk/learn or in Choices. This includes the times and dates of courses and an explanation of accreditation and credit levels.