text
stringlengths
3.12k
18.7k
#include "../../include/csl.h" byte CharTable [128]= { // from maru /* 00 nul */ 0, /* 01 soh */ 0, /* 02 stx */ 0, /* 03 etx */ 0, /* 04 eot */ 0, /* 05 enq */ 0, /* 06 ack */ 0, /* 07 bel */ 0, /* 08 bs */ 0, /* 09 ht */ 0, /* 0a nl */ CHAR_PRINT | CHAR_BLANK, /* 0b vt */ 0, ...
/* See LICENSE for licence details. */ #include "yaft.h" #include "util.h" /* function for osc sequence */ int32_t parse_color1(char *seq) { /* format rgb:r/g/b rgb:rr/gg/bb rgb:rrr/ggg/bbb rgb:rrrr/gggg/bbbb */ int i, value; size_t length; int32_t color; uint32_t rgb[3]; struct parm_t parm; reset_pa...
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdlib.h> #include <aos/aos.h> #include <aos/kernel.h> #include <ipc.h> #include <csi_core.h> #include "voice_cp.h" #define voice_ops(v) v->ops #define voice_control(v) v->control struct __voice { voice_pcm_param_t ...
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2014 Intel Corporation. * Copyright (c) 2015 Linaro Limited. * * Copied from src/arm/banana.c * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the S...
/* * Tango_SessionSetup.c * tango * * Copyright (C) 2010 <NAME> * * This software is available under a BSD license. Please see the LICENSE.TXT file for details. */ #include "Tango_SessionSetup.h" #include "TangoBase.h" #include "TangoSecurity.h" void _tango_print_SESSION_SETUP_RESPONSE(const tango_smb_t *s...
/* * Copyright (C) 2007 Freescale Semiconductor, Inc. * * <NAME> <<EMAIL>> * Based on mpc832xmds file by <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. */ ...
/* BSD 3-Clause License Copyright (c) 2020, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions a...
//***************************************************************************** // // Startup code for use with TI's Code Composer Studio. // // Copyright (c) 2011-2014 Texas Instruments Incorporated. All rights reserved. // Software License Agreement // // Software License Agreement // // Texas Instruments (TI) is s...
// SPDX-License-Identifier: GPL-2.0-only /* * TI SCI Generic Power Domain Driver * * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #include <linux/err.h> #include <linux/module.h> #include <linux/mutex.h> #include <linux/of.h> #include <linux...
/** MIT License Copyright (c) 2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
/* * Copyright (C) 2007-2020 S[&]T, The Netherlands. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this...
/* * To disable the checks done by this program, see below at the beginning * of the function 'main'. */ #include <stdio.h> #include <string.h> #include <stdarg.h> #include "database.h" #define T_TRACER 1 #include "T.h" /* VCD specific defines and includes * If the codebase changes, it may need to be updated *...
#include "connectionclient.h" #include "encrypt.h" #include <stdint.h> #include <stdlib.h> #include <string.h> #include <assert.h> #define G 5 #define FINGERPRINTCHUNKSIZE 256 #define SENDCACHESIZE 65536 #define HANDSHAKE_HEADER 16 struct message { struct message *next; size_t sz; uint8_t buffer[1]; }; struct co...
/****************************************************************************//** * @file main.c * @version V0.10 * @brief Demonstrate how to trigger multiple sample modules and got conversion results in order of priority. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2020 Nuvoton Technology Co...
#include "http.h" #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> int parse_request(int, http_req_t*); int get_line(int, char*, size_t); int http_init(http_t* http, uint16_t...
// MBED OS #include "cmsis_os2.h" // HYPERBUS CMSIS driver #include "hyperbus_api.h" #define RAM_ADDR 0x0 #define FLASH_ADDR 0x10000000 #define LATENCY 6 #define BUFFER_SIZE 256 #define DEVICE_READY_OFFSET 7 #define ERASE_STATUS_OFFSET 5 #define PROGRAM_STATUS_OFFSET 4 /*...
#include "ent.h" #include "body.h" #include "grow.h" #include "json.h" #include "json-util.h" #include "load-texture.h" #include "loader.h" #include "logger.h" #include "pixel.h" #include "string.h" #include "util.h" #include "xalloc.h" #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> stru...
/* Resample an image with a quadratic transform. * * Original code from <NAME>, * Adapted by <NAME> for many bands, * VIPSified by JC ... other numeric types, partial output * * 7/11/12 * - rewritten again for vips8 */ /* This file is part of VIPS. VIPS is free software; you can redistribute it ...
/**Programador: <NAME> ***Professor: Prof. <NAME> ***Disciplina: Computação concorrente. ***Data: 20/10/2019 **Ultima alteração: 31/10/2019 ***Descrição: Esse programa calcula a a integral, por aproximação retangular, de uma função indicada no *** código. ***Entrada: ...
/* * Copyright 2011 ArtForz * Copyright 2011-2013 pooler * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. See C...
/* coding.c * * Copyright (C) 2006-2012 Sawtooth Consulting Ltd. * * This file is part of CyaSSL. * * CyaSSL is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at y...
/* *++ * logging.c - Logging/error handling facility. * * This module implements logging of diagnostic messages, * based on the status code definitions (see statcodes.c/h). * When a fatal error is encountered, or the number of * non-fatal errors exceeds the maximum-error threshold, * compilation is aborted via ...
/* * Copyright (c) 2004 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions an...
/* * FIG : Facility for Interactive Generation of figures * Parts Copyright (c) 1990 <NAME> * Parts Copyright (c) 1989-2002 by <NAME> * * Any party obtaining a copy of these files is granted, free of charge, a * full and unrestricted irrevocable, world-wide, paid up, royalty-free, * nonexclusive right and licens...
/* Util.c * mKilo * Rijn */ /* Assert macro */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #if !defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE < 199309L #define _POSIX_C_SOURCE 199309L #endif #ifndef _BSD_SOURCE #define _BSD_SOURCE #endif #include <assert.h> #ifndef __MACH__ #include <features.h> #endif // #define...
/* * Copyright (c) 2009, <NAME> * All rights reserved. * * This file is part of ruby-ffi. * * This code is free software: you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License version 3 only, as * published by the Free Software Foundation. * * This code is distrib...
/* * Copyright (c) by <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This ...
/* $VER: vlink errors.c V0.15a (09.12.15) * * This file is part of vlink, a portable linker for multiple * object formats. * Copyright (c) 1997-2015 <NAME> * * vlink is freeware and part of the portable and retargetable ANSI C * compiler vbcc, copyright (c) 1995-2015 by <NAME>. * vlink may be freely redistribu...
/* * Copyright (c) 2011-2020 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * * @precisions normal z -> s d c * */ #include "common.h" #include "flops.h" #include "parsec/data_dist/matrix/sym_two_dim_recta...
/*************************************************************************** -= Sky Fox / Exerizer =- driver by <NAME> (<EMAIL>) [ 1 Background ] The stars in the background are not tile based (I think!) and their rendering is ...
#include "table.h" #include "ribbon_object.h" #define TABLE_LOAD_FACTOR 0.75 #if DEBUG_TABLE_STATS /* For debugging */ static size_t times_called = 0; static size_t times_called_and_found = 0; static size_t capacity_sum = 0; static size_t max_capacity = 0; static size_t bucket_sum = 0; static size_t avg_bucket_count...
/** * @file lv_math.c * */ /********************* * INCLUDES *********************/ #include "lv_math.h" #include <stdbool.h> /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ /********************** * STATIC PROTOTYPES ****...
/* * Copyright (c) 2014 Kaprica Security, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
#include <stdio.h> #include <stdlib.h> #include <string.h> // strcmp, strcpy, strlen #include "util/io.h" #include "util/map.h" #include "util/stack.h" #include "command/cmd.h" #include "command/flag.h" static CMD* _root = NULL; static int _override_usage = 0; static void usage(); static void init_cmd(CMD*); static...
/* $OpenBSD: tcopy.c,v 1.11 2009/10/27 23:59:44 deraadt Exp $ */ /* $NetBSD: tcopy.c,v 1.5 1997/04/15 07:23:08 lukem Exp $ */ /* * Copyright (c) 1985, 1987, 1993, 1995 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modi...
/* gpg-check-pattern.c - A tool to check passphrases against pattern. * Copyright (C) 2007 Free Software Foundation, Inc. * * This file is part of GnuPG. * * GnuPG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Fo...
/*- * Copyright (c) 1999-2002 <NAME> * All rights reserved. * * This software was developed by <NAME> for the TrustedBSD Project. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source...
/* Copyright 2016 Vanderbilt University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
/************************************************************************** * * Copyright 2006 <NAME>, Inc., <NAME>, Texas. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal i...
/***************************************************************************//** * @file main_cryogg11.c * @brief This project demonstrates four different reset sources - POR, EM4, pin * reset, and system reset request. GPIO Push Buttons (PB0 & PB1) and LEDs (LED0 * & LED1) are used in initiate and indicate differe...
#include "obj_test.h" #include "test_common.h" #include <stdlib.h> #include <stdio.h> #include <filelib.h> #include <utillib/cli.h> static bool generate_test(obj_settings_t *settings, int argc, char **argv){ UNUSED(settings); if(!requested_arguments_exact(argc, 1)){ return false; } char *f...
/* * Copyright (c) 2010 by <NAME> <<EMAIL>> * * This file is free software; you can redistribute it and/or modify * it under the terms of either the GNU General Public License version 2 * or the GNU Lesser General Public License version 2.1, both as * published by the Free Software Foundation. * * Edit History ...
#include <stdlib.h> #include <string.h> #include <sys/stat.h> #ifndef _WIN32 # include <sys/types.h> #endif /* _WIN32 */ #include "uv.h" #include "fd_table.h" #include "path_resolver.h" #include "wasi_types.h" #include "wasi_rights.h" #include "uv_mapping.h" #include "uvwasi_alloc.h" static uvwasi_errno_t uvwasi__i...
/* Unit tests. Based on Learn C the Hard Way book, by <NAME> (http://c.learncodethehardway.org/book/) $Header: /cvsroot/z88dk/z88dk/src/z80asm/lib/minunit.c,v 1.1 2015/02/08 23:52:31 pauloscustodio Exp $ */ #include "minunit.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef _MSC_VER #define snpr...
/********************************************************************** * ./servidor <ip servidor> <porto servidor> **********************************************************************/ // BIBLIOTECAS #include <sys/socket.h> #include <netinet/in.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #inclu...
// https://github.com/osm0sis/mkbootimg/blob/master/mkbootimg.c /* tools/mkbootimg/mkbootimg.c ** ** Copyright 2007, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the ...
#include <stdio.h> #include <stdlib.h> /* Função que verifica se num já existe no vetor v de tamanho t * Retorna o indice do vetor onde está num se existir * e retorna -1 caso num não esteja em v * */ int achou(int v[], int t, int num) { int i; for (i = 0; i < t; i++) { if (num == v[i]){ ...
// // sql3parse_debug.c // // Created by <NAME> on 01/03/16. // #include "sql3parse_debug.h" #pragma mark Enum2String Code - static const char *sql3conflict_clause_str (sql3conflict_clause clause) { switch (clause) { case SQL3CONFLICT_NONE: return "NONE"; case SQL3CONFLICT_ROOLBACK: return "ROOLBACK"; case ...
#include <string.h> #include <stdbool.h> #include "stm32f1xx_hal.h" #define MIN(a,b) (((a)<(b))?(a):(b)) #define UART_SIZE 1024 static uint8_t uart_buf[UART_SIZE]; static uint16_t uart_len = 0; static uint16_t uart_read = 0; static uint16_t uart_write = 0; extern UART_HandleTypeDef huart2; extern void send_debug(co...
/* dbmopen.c - Open the file for dbm operations. This looks like the NDBM interface for dbm use. */ /* This file is part of GDBM, the GNU data base manager. Copyright (C) 1990-1991, 1993, 2007, 2011, 2016-2017 Free Software Foundation, Inc. GDBM is free software; you can redistribute it and/or modify i...
/* * Copyright (C) 2003 PMC-Sierra Inc. * Author: <NAME> (<EMAIL>) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any...
#include "conf.h" void worddic_conf_load_unit_style(GSettings *settings, unit_style *us, const gchar *name) { gchar *key = NULL; key = g_strconcat(name, "-start", NULL); us->start = g_settings_get_string(settings, key); g_free(key); key = ...
/* * dhcpcd - DHCP client daemon * Copyright (c) 2006-2014 <NAME> <<EMAIL>> * All rights reserved * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyrig...
/* * Copyright (c) 1994-1995 Ataman Software, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this lis...
#include <assert.h> #include "ev-platform.h" #include "loop.h" #include "tcp.h" /* Frequency of the high-resolution clock. */ static uint64_t hrtime_frequency_ = 0; static void _ev_time_init_win(void) { LARGE_INTEGER perf_frequency; /* Retrieve high-resolution timer frequency * and precompute its re...
#include "mpeconf.h" #include "clogimpl.h" void CLOG_dumplog() { CLOG_BLOCK *block; block = CLOG_first; while (block) { printf("block at 0x%p: \n", ((char *) block)); CLOG_dumpblock(block->data); block = block->next; } } void CLOG_outblock( p ) double *p; { CLOG_dumpblock(p); /* for the time...
#if 0 /// Copyright (c) Titan Robotics Club. All rights reserved. /// /// <module name="AutoCode.h" /> /// /// <summary> /// This module contains the Autonomous-only functions. /// </summary> /// /// <remarks> /// Environment: RobotC for Lego Mindstorms NXT. /// </remarks> #endif // // Include libraries. // /...
/* N U R B _ F L A T . C * BRL-CAD * * Copyright (c) 1990-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 ...
#include <math.h> #include "mathutils.h" /* Computes using a Numerical Recipes routine the singular value decomposition of A (mxn matrix) overwriting A with U. The SVD is A = U.diag(w).Vt N.B. The w's are NOT sorted. */ static double dpythag(double a, double b); void SVD(double **aa, int m, int n, double w...
// // KBScene.c // KBEngine // // Created by <NAME> on 12/20/12. // Copyright (c) 2012 Kieffer Bros., LLC. All rights reserved. // #include "KBScene.h" #include <stdlib.h> #include <stdio.h> #include "KBEngine.h" void KBSceneDrawDefault(KBType *sceneObj); void KBSceneDrawAtlas(KBType *sceneObj); KBScene * KBScen...
/* * NVRAM variable manipulation (direct mapped flash) * * Copyright 2005, Broadcom Corporation * All Rights Reserved. * * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM * SPECIFICALLY DISCLAIMS ANY IMPLIED...
#include <avr/interrupt.h> #include <avr/wdt.h> #include <stdint.h> #include <util/delay.h> #include "controller.h" #include "libs/Neopixel.h" #include "usb.h" #include "usbdrv/usbdrv.h" #define DEBUG_MATCH 0 // Enable PIN_TIMER toggle on timer match #define GCN_RETRY_LIMIT 5 // Number of times to retry the GCN s...
/* Copyright (C) 2014 by <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish...
/******************************************************************************* NAME GOODE'S HOMOLOSINE PURPOSE: Transforms input Easting and Northing to longitude and latitude for the Goode's Homolosine projection. The Easting and Northing must be in meters. The longitude and latitude ...
/* * Copyright (C) AlexWoo(<NAME>) <EMAIL> */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include "ngx_multiport.h" typedef struct { ngx_str_t multiport; ngx_str_t uri; } ngx_http_broadcast_conf_t; typedef struct { ngx_int_t ...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
#include "first.h" /* mod_authn_sasl * * FUTURE POTENTIAL PERFORMANCE ENHANCEMENTS: * - database response is not cached * TODO: db response caching (for limited time) to reduce load on db * (only cache successful logins to prevent cache bloat?) * (or limit number of entries (size) of cache) * (ma...
//----------------------------------------------------------------------------- // Small Text Based Rogue like RPG text-based game for the AMSTRAD CPC // by @dfreniche // July 2019 //----------------------------------------------------------------------------- #define VERSION "v0.0.6" #include <cpctelera.h> #include ...
/* * Copyright 2018-2019 NXP * * SPDX-License-Identifier: BSD-3-Clause * * Author <NAME> <<EMAIL>> */ #include <platform_def.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <debug.h> #include <errno.h> #include <string.h> #include <io.h> #include <ddr.h> #include <util...
#include "types.h" // === [ Overlay ID d ] === // address: 0x8013AAC4 // size: 0xF000 extern unsigned char map_buf[61440]; // address: 0x80149AC4 // size: 0x54 extern unsigned short *imgbuf[21]; // address: 0x80149B18 // size: 0x640 extern struct POLY_FT4 br[10][2][2]; // address: 0x8014A158 // size: 0x640 extern ...
/********************************************************************* * Filename: md5.c * Author: <NAME> (brad AT bradconte.com) * Source: https://github.com/B-Con/crypto-algorithms * License: Public Domain * Details: Implementation of the MD5 hashing algorithm. * Algorithm specification can be f...
/* * Copyright (c) 2016 VMware, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
#include <stdio.h> #include <string.h> #include <stdint.h> #include <assert.h> #include <immintrin.h> #include <db.h> #include "params.h" #include "consts1024.h" #define min(a,b) (((a) < (b)) ? (a) : (b)) #define max(a,b) (((a) > (b)) ? (a) : (b)) static DB *btree = NULL; static int16_t maxmulmod(int32_t bound, int1...
/* * Copyright (c) 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
#include "config.h" #include <assert.h> #include <ctype.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #if defined(_MSC_VER) #include "wingetopt/src/getopt.h" #else #include <unistd.h> #endif #include "parasail.h" #include "parasail/io.h" #incl...
#include <assert.h> #include <errno.h> #include <netdb.h> #include <netinet/in.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <sys/select.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include "comm.h" // comm struct ConPair crea...
/* frconv.c */ #include <stdio.h> #include <string.h> #include "filp.h" struct { int demon_id; int hit; int ticks; int move; } demondesc[16]; char wbmp[10]; char block[11]; #define FB_WALL 0 #define FB_DEMON 1 #define FB_ITEM 2 #define FB_GATE 3 #define FB_OPAQUE 4 #define FB_EMPTY 5 #define BLOCK_SIZE ...
#include <stdio.h> #include <assert.h> #include "compaxx.h" #include "compaxx_int.h" #include <math.h> #include <stdlib.h> #include <stdlib.h> #include <string.h> #define ASSERT_EQ(a, b, err) assert(fabs(a - b) < err) #define RUNTEST(name) \ if (rc == E_SUCCESS) { \ printf("------ " #name " ------\n"); \ ...
/* The Computer Language Benchmarks Game * http://benchmarksgame.alioth.debian.org/ Based on bit encoding idea of C++ contribution of <NAME> Copy task division idea from Java entry, contributed by <NAME> Contributed by <NAME> */ //#include "simple_hash3.h" #include <ctype.h> #include <malloc.h> #include <...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* mlx_key_press.c :+: :+: :+: ...
// // OWUart.c // OWUart // // Created by <NAME> on 1/June/2014. // Copyright (c) 2014 SpiderElectron. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include <string.h> /* String function definitions */ #include <unistd.h> /* UNIX standard function definitions */ #include <fcntl.h> /* File con...
/**************************************************** * BDC board - iCub Facility - 2013 * * Main program * * * * Written by <NAME> * * <<EMAIL>> * *****...
/* snpLoadFromTmp - create snp table from build125 database, assuming split tables. */ #include "common.h" #include "chromInfo.h" #include "dystring.h" #include "hash.h" #include "hdb.h" #include "jksql.h" #include "snp125.h" char *snpDb = NULL; char *targetDb = NULL; static struct hash *chromHash = NULL; static str...
/* * gcc -Wall -pthread -o getdevval_bb getdevval_bb.c -lpigpio -lrt -lm * gcc -Wall -pthread -o getdevval_bb getdevval_bb.c -lpigpiod_if2 -lrt * ./getdevval_bb 16 0 * * sudo pigpiod */ // #include <linux/i2c-dev.h> // #include <pigpio.h> /* #include <string.h> #include <errno.h> #include <sys/ioctl.h> #include ...
/****************************************************************************** * Copyright (c) 2017, NXP Semiconductors * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributio...
/* <NAME> ------------ 201601025 <NAME> ------------ 201601073 AI ASSIGNMENT - I ----------- 15 PUZZLE SOLVER USING DISPLACED TILES HEURISTIC */ #include<stdio.h> #include<stdlib.h> #include<math.h> #define N 4 int mx[4] = {1,0,-1,0}; int my[4] = {0,1,0,-1}; int node_count = 0,node_count_cl = 0,path_count = 0; in...
/* * Copyright (C) 2016 The Android Open Source Project * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, *...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "sfs_api.h" #include "disk_emu.h" #include "sfs_directory.h" #include "sfs_inode.h" #include "sfs_free_bit_map.h" #include "sfs_super_block.h" #define DISK_NAME "fs.sfs" #define ROOT_DIR_NAME "root" #define INODE_TABLE_LENGTH 48 // blocks allocated ...
/** * Check your HN status with IFTT Webhooks * If status is -1 (offline your HN) then its trigger IFTT webhooks event. * JSON Hypernode status list: https://hypernodes.bismuth.live/status.json. Updated every 3 minutes. * * Requirements: * json-h - https://github.com/sheredom/json.h * include in project ...
/* * Copyright (c) 2015-2019 Contributors as noted in the AUTHORS file * * This file is part of Solo5, a sandboxed execution environment. * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted, provided * that the above copyright notice and th...
/* A Clock face. Drag either of the hands with mouse button 1 to set the value. The clock face is drawn with its center at 0,0 in a cartesian (Y goes up) coordinate system. Click button 3 on the background to quit. To run: csh >cc -o clock clock.c -lm csh >clock */ #include <stdio.h> #include <stdlib.h>...
/* <TAGS>stats signal_processing</TAGS> DESCRIPTION: Calculate burstiness in a histogram Adapted from xf_histbursty1d, <NAME>: 7 February 2011 1. histogram is downsampled to 50bins focussed on the +-50ms zone 2. this histogram is smoothed with a 10ms Gaussian kernel (central bin +-2 bins) 3. cubic spline interpo...
/** * collectd - src/df.c * Copyright (C) 2005-2009 <NAME> * Copyright (C) 2009 <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; only version 2 of the License is applicable...
/* FluidSynth - A Software Synthesizer * * Copyright (C) 2003 <NAME> and others. * * SoundFont file loading code borrowed from Smurf SoundFont Editor * Copyright (C) 1999-2001 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public L...
#include "app_main.h" #include "ov2640.h" extern I2C_HandleTypeDef hi2c2; static i2c_t ov_dev = { .hi2c = &hi2c2, .dev_addr = 0x60 }; static gpio_t ov_rst = { .group = CAM_RST_GPIO_Port, .num = CAM_RST_Pin }; static uint8_t ov_read_reg(i2c_t *dev, uint8_t reg) { uint8_t dat = 0xff; i2c_mem_read(de...
/** **************************************************************************************** * * @file user_ble_gatt.c * * @brief User BLE GATT source code. * * Copyright (c) 2012-2020 Dialog Semiconductor. All rights reserved. * * This software ("Software") is owned by Dialog Semiconductor. * * By using thi...
/* device.c -- Interaction with Windows tap driver in a MinGW environment Copyright (C) 2002-2005 <NAME>, 2002-2014 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free S...
#include "cgit.h" #include "ui-stats.h" #include "html.h" #include "ui-shared.h" struct authorstat { long total; struct string_list list; }; #define DAY_SECS (60 * 60 * 24) #define WEEK_SECS (DAY_SECS * 7) static void trunc_week(struct tm *tm) { time_t t = timegm(tm); t -= ((tm->tm_wday + 6) % 7) * DAY_SECS; gm...
/*- * Copyright (c) 2015, <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
/*! \file minesweeper.c \author L.Draescher <<EMAIL>> \date 15/12/2020 \version 0.1 - first draft \brief Minesweeper \remarks None File to store all the methods to implement a game of minesweeper. */ #include "minesweeper.h" /*! \fn int cellHasMine(cell** minefield, dimensions dim_dimensions, in...