Myod
Review Makefile
Task details
- C review of the file processing
- Write myod.c achieved under Linux od -tx -tc XXX function with myod XXX
- main separate from other, making static and dynamic libraries
- Writing the Makefile
- Submit the results of the test code and run shots, shots submit debugging process, to full-screen, contains its own student number information
- Published a blog in blog Park, problems encountered and solutions focus on writing process
Static library
Dynamic library
operation result
The code debugging problems and solutions
- Question 1: Linux in the od command is displayed \ n , but began to write C programs can not be displayed
-
Question 1 solution: a reference in the ASCII character encoding, what characters can not be displayed or printed out , we can manually output, encountered "\ n" can use the escape character, namely printf ( "\ n").
-
Question 2: Linux under od -tx -tc XXX operating results and the expected difference
-
Problem 2 Solution:
- This is my od -tc -tx and -tx1 od -tc realize the function did not quite figure out the cause. In blue ink cloud of mission requirements are written myod.c achieved under Linux od -tx -tc XXX XXX function with MyoD , actual access to information to know, -tc represents the output ASCII characters, -tx1 in hexadecimal output, each output of one byte, and if -tx , the default for a group of four bytes. So just command instead od -tc -tx1 zxj to
-
Cloud link code