I am Dave Jing Tian, an Assistant Professor in the Department of Computer Science at Purdue University working on system security. My research involves embedded systems, operating systems, and trusted computing. All opinions are my own.
- 183,183 hits
All blogs on this website are licensed under a Creative Commons Attribution 4.0 International License.
Tag Archives: C
// This is an example source file which is used to show common // mistakes and tips when passing 2D array as a parameter to a // function call in C/C++ programming. // Feb 19, 2011 // email@example.com #include <stdio.h> … Continue reading
This post is used to record one mistake while my coding – just for my bad memory:) I have to admit that it spent me the whole day to figure out what was wrong, as it looked prefect except parse … Continue reading
This post is used to tell how to write your own function with varying arguments (如何写变参函数) – we will write our own ‘printf()’ function called ‘ddLog()’. Wish the code below would give you a hint:) /* * This source file … Continue reading
This is a little C program used to show the framework of state machine programming (smp,状态机编程). Detailed state transition picture is as below. Try to build the source code below and enjoy:) /* * State Machine Program (SMP) * This … Continue reading
Episode usage of ‘gettimeofday()’ and ‘times()‘ On Unix/Linux machine to measure the time consumption for certain function call, ‘gettimeofday’/’times’ would be 2 major ways. Better than ‘gettimeofday’, ‘times’ could provide detailed time info for user, system, child… 1. gettimeofday() #include … Continue reading