Skip to content

SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search
SysTutorials

  • Programming

    Hashing Library for C

    ByEric Ma Jul 13, 2013Mar 27, 2018

    I try to find some Hashing libraries for C and find several good ones. The hsearch function in the GNU C library. There are other methods to organize information which later should be searched. The costs of insert, delete and search differ. One possible implementation is using hashing tables. The following functions are declared in…

    Read More Hashing Library for CContinue

  • Linux | Programming | Software

    Makefile Tutorials

    ByEric Ma Jul 13, 2013Sep 5, 2020

    Make is a utility that automatically builds executable programs and libraries from source code by reading files called makefiles which specify how to derive the target program. Make is widely used, especially in Unix/Linux world. More introductions to Make and it’s history can be found on Wikipedia. In this post, I list articles for Makefile…

    Read More Makefile TutorialsContinue

  • Linux

    Floating Point in Bash Shell

    ByEric Ma Jul 13, 2013

    Integers are natively supported in Bash shell. However, what if we use floating point in Bash shell? The short and direct answer is using ‘bc‘ command – “An arbitrary precision calculator language.” Just run bc  and enter some floating point calculation expression, such as “1.2+8.2”, bc will give the result. In a script, we certainly…

    Read More Floating Point in Bash ShellContinue

  • Linux | Programming

    GNU C Reference Manual

    ByEric Ma Jul 13, 2013Feb 28, 2020

    When we program in C, a C reference by hand is usually useful. The GNU C Reference Manual provides us a good reference for the C programming language implemented by the GNU C Compiler. “This manual is strictly a reference, not a tutorial. Its aim is to cover every linguistic construct in GNU C.” GNU…

    Read More GNU C Reference ManualContinue

  • Linux | Programming

    Inline Assembly with GCC on Linux

    ByEric Ma Jul 13, 2013

    One cool feature of gcc is that it can inline assembly into C code. With inline assembly, the programmer can precisely control the execution of the processor, such as forcing variables to use registers, getting special processor state efficiently, and writing critical efficient code in assembly by hand. I compile a list of tutorials from…

    Read More Inline Assembly with GCC on LinuxContinue

  • Programming

    x86-64 ISA / Assembly Programming References

    ByEric Ma Jul 13, 2013Aug 23, 2020

    This post collect the reference resource for x86-64 (also know as Intel 64, AMD 64) ISA / assembly language programming. x86-64 is a 64-bit extension of the Intel x86 instruction set. ==x86-64 Assembly Programming== Introduction to Computer Systems Resources (15-213 Introduction to Computer Systems Resources from CMU) Lots materials for learning machine-level programming on the…

    Read More x86-64 ISA / Assembly Programming ReferencesContinue

  • Linux | Programming

    GNU glibc Manual

    ByEric Ma Jul 13, 2013

    “The C language provides no built-in facilities for performing such common operations as input/output, memory management, string manipulation, and the like. Instead, these facilities are defined in a standard library, which you compile and link with your programs. The GNU C library, described in this document, defines all of the library functions that are specified…

    Read More GNU glibc ManualContinue

  • Programming

    GDB Cheat Sheet

    ByEric Ma Jul 13, 2013Feb 28, 2020

    Here is a collection of good GDB Cheat Sheets from the Internet. GDB QUICK REFERENCE GDB Version 5 GDB Cheat Sheet gdb Cheatsheet GDB commands by function – simple guide

    Read More GDB Cheat SheetContinue

  • Programming

    fclose – Close a Stream

    ByEric Ma Jul 13, 2013Aug 27, 2013

    fclose is a frequently used C standard library which closes the file associated with the stream and disassociates it. NAME fclose – close a stream SYNOPSIS #include <stdio.h> int fclose(FILE *fp); DESCRIPTION The fclose() function will flushes the stream pointed to by fp (writing any buffered output data using fflush()) and closes the underlying file…

    Read More fclose – Close a StreamContinue

  • Linux | Programming

    Vim Indenting C/C++ Code

    ByEric Ma Jul 13, 2013Jan 22, 2014

    Vim provides some basic formatting commands. A combination of these commands with the editing commands will make the programmer happy. A list of basic text formatting commands in Vim: = is an operator that formats/indents text. i{ is a text object that specifies the surrounding code block. It should be used together with v, =,…

    Read More Vim Indenting C/C++ CodeContinue

  • Programming

    The C Programming Style that I Follow

    ByEric Ma Jul 13, 2013Oct 7, 2019

    C programming language allow any style the programmer like. A good style can make the code easy to understand and maintain, while a bad style will make the project a nightmare. This is the C programming styles that I follows: 1. For each source file (*.c), there is a header file (*.h) that have the…

    Read More The C Programming Style that I FollowContinue

  • Linux | Programming

    Vim + cgdb

    ByEric Ma Jul 13, 2013Oct 7, 2019

    I begin to use vim for programming. I like the tools that focus on one function. I used to use emacs. But I think I like vim more. For debugging, I use gdb. But I use the front end cgdb. I can see the codes with the cursor when debugging. I can use F8 for…

    Read More Vim + cgdbContinue

  • Programming

    Win32 Programming: Operation on Files

    ByEric Ma Jul 13, 2013Oct 13, 2015

    Here, we show some example code on Win32. The code are operations on file on Win32 OSes. The code here uses some MFC classes. Recursively show the files from a path: void Show(const char *folderPath) { CFileFind finder; CString path(folderPath); path += “*.*”; BOOL bWorking = finder.FindFile(path); while (bWorking) { bWorking = finder.FindNextFile(); cout <<…

    Read More Win32 Programming: Operation on FilesContinue

  • Programming

    COM Port Programming in Win32

    ByEric Ma Jul 13, 2013Mar 26, 2023

    The control support for the COM port under Win32 can be used to operate the COM port, such as a monitoring and control program for a single-chip microcontroller. Below is an example code related to COM port control: // Open COM1 hCOM=CreateFile( “COM1″,GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL); if (hCOM==INVALID_HANDLE_VALUE) { MessageBox( GetForegroundWindow(),”Can not open the COM port!”,”Operation Failed”,MB_ICONINFORMATION); return;…

    Read More COM Port Programming in Win32Continue

  • Linux | Programming

    How to Generate Mixed Source and Assembly List from Source Code using GCC

    ByEric Ma Jul 13, 2013Apr 11, 2020

    When debugging and optimizing programs, developers sometimes need to generate and investigate into the assembly generated by the compiler. Generating a mixed source and assembly list will help a lot for debugging and optimization. gcc can achieve this by working with the assembler. Generate assembly list mixed with the source code Just add these gcc…

    Read More How to Generate Mixed Source and Assembly List from Source Code using GCCContinue

  • Programming

    MFC中屏蔽ESC和回车关闭对话框

    ByEric Ma Jul 13, 2013

    解决方法是在CDialog::PreTranslateMessage() 的重载函数中将ESC和回车按键的消息处理掉. 直接上代码: BOOL CResultCollectorDlg::PreTranslateMessage(MSG* pMsg) { if(pMsg->message == WM_KEYDOWN) { switch(pMsg->wParam) { case VK_RETURN: //回车 return TRUE; case VK_ESCAPE: //ESC return TRUE; } } return CDialog::PreTranslateMessage(pMsg); }

    Read More MFC中屏蔽ESC和回车关闭对话框Continue

  • Tutorial

    SetProxy: 一个设置IE代理的命令行小工具

    ByEric Ma Jul 13, 2013Sep 20, 2016

    IE的代理设置用起来并不方便,我自己而言就要经常更改代理服务器,相信很多人有跟我相同的需要。使用C++编写了一个小程序SetProxy调用Win32 API来设置代理服务器IP,用起来方便多了。 编译后为一个可运行console程序,将它放在\windows\system32目录下,使用时只要运行 SetProxy IP:port 就可以把IP设置好,如果要关闭代理,只需运行 SetProxy “” 命令行中运行,界面较土,但用着方便。可以考虑设置几个快捷方式在桌面或者工具栏,点击即设置代理,其它方式发挥想象。 程序下载地址. 源代码也放在这里,希望有需要的人可以用得上 ;) 源代码下载地址. 这是一份有些年头的代码, 如果你在较新的编译器下编译这个项目, 请先做[[setproxy-一个设置ie代理的小工具#comment-995|这里所述的小修改]]. — Eric on Apr. 9, 2014.

    Read More SetProxy: 一个设置IE代理的命令行小工具Continue

  • Tutorial

    一个基于Java Applet的浏览器端远程系统资源监视器

    ByEric Ma Jul 13, 2013Mar 27, 2018

    一个基于Java Applet的浏览器端远程系统资源监视器,使用Socket从网络主机上读取信息然后在browser上动态显示出来。是当年我在实验室中一个项目中做的贡献部分. 这个演示程序中使用的是正态分布生成的数据。 截图一张:

    Read More 一个基于Java Applet的浏览器端远程系统资源监视器Continue

  • Programming

    一个非常优秀的MFC Grid控件

    ByEric Ma Jul 13, 2013

    使用MFC进行开发, 界面编程占用了很大部分的时间. 像Grid这样的控件, MFC并没有提供支持. 发现了这样一个GridCtrl控件, 非常好用: http://www.codeproject.com/KB/miscctrl/gridctrl.aspx 要开发类似的程序时可以采用.

    Read More 一个非常优秀的MFC Grid控件Continue

  • Programming

    OCaml Learning Materials

    ByEric Ma Jul 13, 2013Sep 17, 2020

    OCaml is an interesting functional language. There are lots learning materials on the Internet. I compile a list of resources for OCaml learning and reference. Recommended OCaml learning and reference material Online book of Real World OCaml by Yaron Minsky, Anil Madhavapeddy, Jason Hickey. A very good tutorial by Jason Hickey: http://www.cs.caltech.edu/courses/cs134/cs134b/book.pdf. The OCaml system…

    Read More OCaml Learning MaterialsContinue

Page navigation

Previous PagePrevious 1 … 58 59 60 61 62 … 70 Next PageNext

© 2026 SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search