Welcome To Snipplr


Everyone's Recent C Snippets Tagged c



« Prev 1 Next »
  1. FAV

    Mutex Threads with C

    These are the basic commands to use Mutex Threads in C
    C 8 views posted 3 years ago by msicode
  2. FAV

    Programación en C de una ATM en un módulo GLCD con la placa de evaluación EasyLV18F

    Código final de la asignatura Microprocesadores y Microcontroladores de Tecnun - Universidad de Navarra (España). Curso 2013-2014. 3º Ingeniería en Sistemas de Telecomunicación.
    C 13 views posted 5 years ago by eiger_824
  3. FAV

    Date format in C

    C 22 views posted 7 years ago by mlecho
  4. FAV

    Read hexadecimal argument from command line

    This piece of code will read a hex argument such as: ff or ab from your command line and stores it as a integer
    C 32 views posted 7 years ago by vdevos
  5. FAV

    Two Binary Search Functions in C

    Two versions of binary search -- one recursive, one iterative -- for an array of strings. Both assume that your array index fits within an integer.
    C 25 views posted 8 years ago by rtperson
  6. FAV

    Get Key information with GTK

    C 9 views posted 8 years ago by FArcellier
  7. FAV

    Register Autostart Application

    C 11 views posted 8 years ago by the_coder
  8. FAV

    Hashing function for C

    The General Hash Functions Library has the following mix of additive and rotative general purpose string hashing algorithms. * RS Hash Function A simple hash function from Robert Sedgwicks Algorithms in C book. I've added some simple optimization...
    C 26 views posted 8 years ago by davince
  9. FAV

    C puzzler for software developer role

    C 14 views posted 8 years ago by adino
  10. FAV

    Digit Check in C

    Check that a given integer consists only of elements of a given set. It does a linear search through the set, so the assumption is that the set to search is relatively small. If you're chewing through a particularly large set of digits, you may want...
    C 11 views posted 8 years ago by rtperson
  11. FAV

    itoa implement for c

    A implementation for itoa with c. itoa is function that convert a integer to a string.
    C 12 views posted 8 years ago by vikiyou
  12. FAV

    Get host architecture

    C 7 views posted 9 years ago by oznek
  13. FAV

    Exchange two file by time

    C 6 views posted 9 years ago by khajavi
  14. FAV

    Russian charset

    i want to use it later
    C 4 views posted 9 years ago by iLLUMIN
  15. FAV

    Crystalfontz 533 code using Keil C51

    Example code to exercise a Crystalfontz 533 display from a 8051 using Keil C51.
    C 9 views posted 10 years ago by jimfred
  16. FAV

    Keil C51 character echo test for UART1

    From Keil C51 examples, TEST.C: ISD51 Demo for TI MSC 1210. Polled (non-interrupt) mode. Work-around for dropped-characters related to stop-bit problem: Clear SCON1.5 (or SM2_1).
    C 8 views posted 10 years ago by jimfred
  17. FAV

    Celsius -> Fahr

    This program show two columns of temperature. In left - t of celsius, in right - t. of fahr.
    C 4 views posted 10 years ago by iLLUMIN
  18. FAV

    Replace substring with other string

    The original string (str) will be changed after calling this function, so if you need it make a copy of it.
    C 10 views posted 10 years ago by Menda
  19. FAV

    setting up a network server

    C 4 views posted 10 years ago by tandouri
  20. FAV

    SIMPLE MULTIPLE CGI

    CGI
    C 3 views posted 10 years ago by renatoelias
  21. FAV

    Simulate Key Press

    <pre> To compile $ gcc -lXtst -lX11 Util_KeyPressSimulator.c To create shared library $ gcc -lXtst -lX11 -c Util_KeyPressSimulator.c -o Util_KeyPressSimulator.o $ gcc -lXtst -lX11 -shared -o Util_KeyPressSimulator.so Util_KeyPressSimulator.o...
    C 6 views posted 10 years ago by wearetherock
  22. FAV

    CGI program to show parameters

    Compile, put exe in cgi-bin folder, and post form data to it.
    C 4 views posted 10 years ago by Zufolek
  23. FAV

    Makefile para SRGP

    C 4 views posted 10 years ago by edgsv
  24. FAV

    给定n个整数,求一个最小的数,使得它们除以这个数的余数不重复

    /** * @brief 给定n个整数,求一个最小的数,使得它们除以这个数的余数不重复 * @author soulmachine * @param[in] numbers 整数数组 * @param[in] count 整数个数 * @param[in] max_norm 模的最大值 * @return...
    C 6 views posted 10 years ago by soulmachine
  25. FAV

    Get current working directory

    Sometimes I want a complete path to a file in the current working directory to make error messages clearer. The URL has alternate approaches.
    C 4 views posted 11 years ago by jimfred
  26. FAV

    C #define macro to generate a comment using concatenation operator in preprocessor

    This uses the concatenation operator "##" to insert a comment "//"
    C 31 views posted 11 years ago by jimfred
  27. FAV

    Assembly in C++ with GCC Inline

    Código en C con Ensamblador para GCC
    C 7 views posted 11 years ago by bedomax
  28. FAV

    Obtaining the byte values in a float or double.

    This routine can be used to copy the byte values of a float or double. The "isBigEndian" variable needs to be determined (most PCs are little-endian, whereas most embedded microprocessors are big-endian). Instead of using unsigned chars, it can be us...
    C 7 views posted 11 years ago by pckujawa
  29. FAV

    C API for a python extension module

    C 12 views posted 11 years ago by tkf
« Prev 1 Next »