text
stringlengths
3.12k
18.7k
static char *rcsid = "$Id: s_map.c,v 1.1 2018/04/30 12:17:50 simon Exp $"; /* * ISC License * * Copyright (C) 1986-2018 by * <NAME> * <NAME> * <NAME> * <NAME> * <NAME> * Delft University of Technology * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee ...
/* * STIM_Packer.c Copyright (C) 1998 Sylvain "Asle" Chipaux * Modified by <NAME> * * STIM Packer to Protracker. ******************************************************** * 13 april 1999 : Update * - no more open() of input file ... so no more hio_read() !. * It speeds-up the process quit...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include "mex.h" /* Box-Muller; faster than using sin,cos */ void z_randn(double *normal_rv, double *nrm_rv2) { double u, v, s=2.0, z, z2; while(s>=1 || s==0){ u=(double)(rand())/RAND_MAX*2-1; v=(double)(rand())/RAND_MAX*2-1; s=u...
/* * Copyright (C) 2003 <NAME> * * NEVERBALL 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 program is distribu...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2020 Intel Corporation. */ /* Created 2010 by <NAME> @ intel.com */ #include <sys/queue.h> #include <netinet/in.h> #include <net/if.h> #include <fcntl.h> #include <setjmp.h> #include <stdarg.h> #include <ctype.h> #include <errno.h> #include <getopt.h> #include...
#include "hashmap.h" /* strdup for ANSI */ char *_strdup(const char *a) { int len = strlen(a) + 1; char *r = malloc(len); if (r) memcpy(r, a, len); return r; } /* CRC8 */ #define CRC8_TOPBIT (1 << 7) #define CRC8_POLYNOMIAL 0x9b static unsigned char table8[256]; static int crc8_hinit = 0; void crc8_...
/* config.h. Generated from config.in by configure. */ /* config.in. Generated from configure.ac by autoheader. */ /* Define to 1 if translation of program messages to the user's native language is requested. */ #define ENABLE_NLS 1 /* Define to 1 when using the gnulib module close-stream. */ #define GNULIB_CL...
// // Copyright (c) 2016-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // #include "...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "jd_services.h" #include "interfaces/jd_sensor_api.h" #include "jacdac/dist/c/accelerometer.h" #ifdef PIN_ACC_INT #include "lib.h" #endif // shake/gesture detection based on // https://github.com/lancaster-university/codal-core/blob/...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
// :vim ts=4 sw=4 noet: /* ================================================================================== Copyright (c) 2019 Nokia Copyright (c) 2018-2019 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lice...
/* Copyright (c) 2019-2022 <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, d...
/**************************************************************************** * program for get list of basis available for an atoms using Molcas pacckage * molcaslib H and enter for obtain all basis for H atom * molcaslib and enter for obtain all basis for all atoms ***************************************...
#define _POSIX_C_SOURCE 200809L #include "nodes.h" #include "prompt.h" #include <stdlib.h> #include <time.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <limits.h> void print_node_int(node_common_t *n); void print_node_str(node_str_t *n); void print_node_time(node_time_t *n); void print_node_sec...
/* minimOS disk imager v0.3 * * (c) 2021-2022 <NAME> * * last modified 20210129-1428 * */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* type definitions */ struct imagen { char* byte; long size; char dirty; }; struct cabecera { char tipo[2]; char extra[4]; char nombre[240]...
#include <stdio.h> #include <limits.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/time.h> #include "data.h" void usage(char *command) { fputs("Usage: ",stdout); fputs(command,stdout); puts(" program final-states [tape-length] [initial-state] [initial-tape] [final-tape]"); puts("\tpro...
////////////////////////////////////// // <NAME> // California Institute of Technology // Copyright 2019 ////////////////////////////////////// //this program is tested against resamp.c, the outputs of the two are exactly the same. #include "resamp.h" //ALOS I or Q mean = 15.5, so get 15 or 16 randomly here //#defin...
/* * Copyright 2015 University of Chicago and Argonne National Laboratory * * 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 * * Unles...
/* $NetBSD: pfsync.c,v 1.1 2009/09/14 10:36:49 degroote Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, 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 ...
/** @addtogroup burtc_defines */ /* * This file is part of the libopencm3 project. * * Copyright (C) 2015 <NAME> <<EMAIL>> * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either...
/* Unix SMB/CIFS implementation. SMB filter/socket plugin Copyright (C) <NAME> 1999 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 yo...
#include <stddef.h> #include <stdint.h> #include "svmwgraph.h" #include "pi-graphics.h" #ifdef VMWOS #include "syscalls.h" #include "vlibc.h" #include "vmwos.h" #else #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #endif #define ANSI_BLACK 0 #define ANSI_RED 1 #define ANSI_GREEN 2 #de...
/**************************************************************** NAME: convert2jpeg SYNOPSIS: convert2jpeg [-m | -p palfile] <infile> <outfile> -m input file is an unwrapped mask file. -p apply palfile to input byte file. <infile> A 1- or 3- banded ASF tools byte image. <outfile> a JPE...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "deserialize.h" #include "document-vector.h" #include "../utils/helper.h" #include "../serialize/serialize.h" void hm_destroy_hashmap_body(void *hm_body) { return destroy_hashmap_body((document_vector_t *) hm_body); } int deserial...
/* * libinputmapper - Mappings * * Copyright (c) 2012-2013 <NAME> <<EMAIL>> * * 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 r...
/** * cogl_sqrti: * @x: integer value * * Very fast fixed point implementation of square root for integers. * * This function is at least 6x faster than clib sqrt() on x86, and (this is * not a typo!) about 500x faster on ARM without FPU. It's error is < 5% * for arguments < %COGL_SQRTI_ARG_5_PERCENT and < 10% ...
/* * Copyright (c) 2015, <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: * * * Redistributions of source code must retain the above copyright notice, this * list of condit...
#include "pluto.h" static void MakeZetaTables(double *, double *, int); /* Vibrational and Rotational Temperatures for molecular hydrogen */ #define THETA_V 6140.0 #define THETA_R 85.5 /* Switch to choose the molecular hydrogen spin states. * 0 : Only Para hydrogen , * 1 : Equilibrium (DEFAULT), * 2 : Orth...
// SPDX-License-Identifier: MIT /* * Copyright (C) 2015-2020 Micron Technology, Inc. All rights reserved. */ /* * This sample program shows how to use mpool mlog APIs. * * This program does the following: * 1. Sets up an mpool * 2. Allocates and commits an mlog * 3. Appends ten 512B records asynchronously to ...
#include "types.h" #include "defs.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "x86.h" #include "traps.h" #include "spinlock.h" // Interrupt descriptor table (shared by all CPUs). struct gatedesc idt[256]; extern uint vectors[]; // in vectors.S: array of 256 entry pointers ...
/* Extended Module Player * Copyright (C) 1996-2018 <NAME> and <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...
/* md4.c - MD4 Message-Digest Algorithm * Copyright (C) 2002, 2003 Free Software Foundation, Inc. * * This file is part of Libgcrypt. * * Libgcrypt is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foun...
/* Generic SHA-512 implementation * * Copyright (C) 2020 - 2021, <NAME> <<EMAIL>> * * License: see LICENSE file in root directory * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICUL...
#include "../headers/simul.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdint.h> #include <stdbool.h> #include <time.h> #include <limits.h> #include <string.h> #include "../headers/ising_lattice.h" #include "../headers/monte_carlo.h" #include "../headers/media.h" #include "../heade...
#include <cpuid.h> #include <gtk/gtk.h> #include <stdlib.h> #include "gui.h" #include "zenmonitor.h" GtkWidget *window; static GtkTreeModel *model = NULL; static guint timeout = 0; static SensorSource *sensor_sources; static const guint defaultHeight = 350; enum { COLUMN_NAME, COLUMN_HINT, COLUMN_VALUE, ...
/* intlog.c - library debugging impl * libsrsirc - a lightweight serious IRC lib - (C) 2012-18, <NAME> * See README for contact-, COPYING for license information. */ #if HAVE_CONFIG_H # include <config.h> #endif #include "intlog.h" #include <ctype.h> #include <errno.h> #include <limits.h> #include <stdarg.h> #inc...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
/* * ble_eddy.c BLE service and characteristics for Eddystone * Copyright (c) 2016 <NAME>. All Rights Reserved. */ #include <stdio.h> #include <string.h> #include "nordic_common.h" #include "ble_srv_common.h" #include "app_util.h" #include "config.h" #include "ble_eddy.h" #include "dbglog.h" static char ...
#include "head.h" #define MIN_TIME_SLICE 10 static void add_to_list_tail(proc_list_t *l, obj_proc_t *p); static void remove_from_list(proc_list_t *l, obj_proc_t *p); struct ready_list { struct proc_list queue[2]; int q; }; struct ready_list ready[PRIORITY_MAX] = { 0 }; obj_proc_t *up = nil; static uint32...
#include <assert.h> #include <fcntl.h> #include <stdint.h> #include <sys/types.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <unistd.h> #include <stdio.h> #include <linux/vfio.h> /// bastarization of assert_perror # define assert_perror(errnum) \ (!(errnum) ...
/********************************************************************** Copyright(c) 2011-2015 Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source co...
/** * Copyright (c) <NAME> <andreas[dot]fitzek[at]gmail[dot]com> * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * Redistributions of source code must retain the above * copyright no...
#include "asf_view.h" typedef struct { FILE *fp; int is_rgb; int band_gs; int band_r, band_g, band_b; int big_endian; } ReadEnviClientInfo; int try_envi(const char *filename, int try_extensions) { char *ext = findExt(filename); if (ext && strlen(ext) > 0) { if (strcmp_case(ext, ".hdr") == 0) ...
/*------------------------------------------------------------------------------------------------------------------------------------------- * lxdisplay.c - ZX display emulation *------------------------------------------------------------------------------------------------------------------------------------------...
#include <u.h> #include <libc.h> #include <libg.h> Slave eslave[MAXSLAVE]; int Skeyboard = -1; int Smouse = -1; int Stimer = -1; int logfid; static int nslave; static int isparent; static int epipe[2]; static int eforkslave(ulong); static void extract(void); static void ekill(void); static int enote(void *, char *); ...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#ifdef __APPLE__ #include <ES2/gl.h> #else #include <GLES2/gl2.h> #endif #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #if defined __ANDROID__ && defined DEBUG #include <android/log.h> #endif static struct { void (*file_reader)(const char *, char **, size_t *); GLfloat matrix[4][4]; GLfloat angle; GLsize...
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #ifndef WSABASEERR #define WSABASEERR 10000 #define WSAEINTR (WSABASEERR + 4 ) #define WSAEBADF ...
#include <stdio.h> #include <stdlib.h> #include <vicNl.h> #ifndef _LEAPYR #define LEAPYR(y) (!((y)%400) || (!((y)%4) && ((y)%100))) #endif static char vcid[] = "$Id: make_dmy.c,v 4.4.2.1 2007/05/04 21:30:46 vicadmin Exp $"; dmy_struct *make_dmy(global_param_struct *global) /*****************************************...
// // Created by geoco on 27.11.2020. // #include <galaxy/starsystem.h> uint32_t getIndexOfGravityCenter(const unsigned long entityId, const int *indexes, const int amountOfEntries) { uint32_t index = NULL; uint32_t i = 0; while (i < amountOfEntries) { if (entityId == *(index...
static unsigned int lava_val[1000000]; static int lava_first=1; void lava_set(unsigned int bug_num, unsigned int val); void lava_set(unsigned int bug_num, unsigned int val) { if (lava_first) {int i; lava_first=0; for (i=0; i<1000000; i++) lava_val[i]=0; } lava_val[bug_num] = val; } unsigned int lava_get(unsigned int b...
#include <roa/platform.h> #include <stdlib.h> #include <stdio.h> #include <xcb/xcb.h> #include <assert.h> #include <string.h> /* -------------------------------------------------------------------------- */ /* Types */ struct roa_platform_ctx { xcb_connection_t *con; xcb_window_t win; xcb_in...
/* SCREENColorRange.c AUTHORS: mario.kleiner at tuebingen.mpg.de mk PLATFORMS: All. HISTORY: 12/05/06 mk Created. DESCRIPTION: Set color scaling and clamping behaviour for a specific onscreen window. TO DO: */ #include "Screen.h" char fragmentTunnelSrc[] = "/* Simple pass-thro...
#include <stdio.h> #include <stdlib.h> #include "format/anvil.h" #include "format/nbt.h" #include "utils/common.h" #include "world.h" #define ASSERT(cond, str) \ if (!(cond)) { \ fprintf(stderr, "Assertion failed: " str "\n"); \ abort(); \ } static unsigned char nbt_compressed_data[] = { 31, 13...
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1987 <NAME> Modified: 2001 AlansFixes **********/ /* Patch to noisean.c by <NAME>. * Patched with modifications from Weidong Liu (2000) * Patched with modifications ftom Weidong Liu * in bsim4.1.0 code */ #include "n...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> /* bf89 - A Simple BrainF**k Interpreter In Pure C89 */ FILE *FSrcPointer,*FLogPointer,*FTempPointer; typedef unsigned char ErrType; typedef unsigned long IntType; typedef long SignedIntType; #define SMIN LONG_MIN #define SMAX LONG_MAX #de...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "logio.h" #include "vlbconst.h" #include "vlbmath.h" #include "mapmem.h" #include "mapwin.h" #include "model.h" #include "mapcln.h" static float *absmax(float *map, int nx, int ny, Winran *wins, int nwin); static void subcc(MapBeam *mb, float *cmpptr,...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <ncurses.h> void bubble_sort(int list[], int n); void insertion_sort(int list[], int n); void selection_sort(int list[], int n); void quick_sort(int list[],int first,int last); void merge(int [],int ,int ,int ); void part(int [],int ,int ); //function f...
/* * Copyright 2016 <NAME> * * 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 to in w...
/* * wumpus.c --- a faithful translation of the classic "Hunt The Wumpus" game. * * Translator: <NAME> <<EMAIL>> * Version: $Id: wumpus.c,v 1.3 1993/11/07 19:19:27 esr Exp $ * * This was the state of the art 20 years ago, in 1972. We've come a long * way, baby. * * The BASIC source is that posted by <NAME> in...
/* ** Copyright 2014-2016 The Earlham Institute ** ** 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...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2020 <NAME> │ │ ...
/* * Author: <NAME> * * Instructor: <NAME> * School: University of Missouri - St. Louis (UMSL) * Class: CS 4780 - System Admin/Network Security * Semester: Summer 2015 * * Assignment: Project 1 - RC5 Encryption Implementatio...
/* Copyright (c) 1998-2015, <NAME> <<EMAIL>> <NAME> <<EMAIL> <NAME> <<EMAIL>> 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 I...
/* Copyright 2008 <NAME>. -*- indent-tabs-mode: nil -*- * * $Id: memmgr_vfy.c 5868 2008-12-18 23:33:21Z pnkfelix $ * * Larceny -- precise garbage collector, rep inv checking. */ #define GC_INTERNAL #include "larceny.h" #include "gc.h" #include "gc_t.h" #include "gclib.h" #include "msgc-core.h" #include...
#include "asf_convert_gui.h" #include "asf_geocode.h" #include <ctype.h> #include "asf_nan.h" #include "cla.h" static GtkWidget * utm_menu = NULL; static GtkWidget * ps_menu = NULL; static GtkWidget * albers_menu = NULL; static GtkWidget * lamcc_menu = NULL; static GtkWidget * lamaz_menu = NULL; static GtkWidget * mer...
/* * Copyright (c), University of Bologna and ETH Zurich * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this ...
/* * Copyright (c) 1999, 2000, 2003, 2019 <NAME> <<EMAIL>> * * Chinese Hanzi Bitmap Font drawing using loadable HBF files for Microwindows */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "uni_std.h" #include "device.h" #include "devfont.h" #include "genfont.h" #include "../drivers/hbf.h" #if...
/* * The MIT License (MIT) * * Copyright (c) 2019 <NAME> (tinyusb.org), 2022 Kusaanko * * 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 limitatio...
// Copyright 2019-2021 Lawrence Livermore National Security, LLC and other // Variorum Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: MIT #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <stdli...
#include "bgen/metafile.h" #include "bgen/file.h" #include "bgen/variant.h" #include "bmath.h" #include "bstring.h" #include "file.h" #include "free.h" #include "io.h" #include "mem.h" #include "metafile.h" #include "metafile_write.h" #include "partition.h" #include "report.h" #include <string.h> static struct bgen_me...
/*- * BSD LICENSE * * Copyright (c) Intel Corporation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyri...
#include "fs_mbuf.h" #include <string.h> #include <stdio.h> #include <errno.h> #define MIN_BLK_SIZE 4 #define BLK_FACTOR 4 #define BLK_SIZE (1024*2) //#define BLK_SIZE (1) inline static void blk_buf_init(fs_mbuf_blk_t *blk) { blk->head = blk->tail = blk->buf; } fs_mbuf_blk_t *fs_mbuf_add_blk(fs_mbuf_t *mbuf,...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * _coder_Kernel_Methodis_api.c * * Code generation for function '_coder_Kernel_Methodis_api' * */ /* Include...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> #include <conio.h> #include "structs.c" #define wall_marker "#" #define mob_marker "\x1b[31mY\x1b[0m" #define player_marker "\x1b[32mX\x1b[0m" #define fight_marker "\x1b[33mF\x1b[0m" // delay implementation using time.h; void...
/****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics. * All...
//MML v6 (identical to v5) //2019.01.19 ver 6.1 //Added labels (: directive) #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <stdnoreturn.h> #include <ctype.h> #include <stdarg.h> #include <string.h> #include <stdbool.h> #include "MMLtargetDef.h" struct token* HEAD; struct inc...
#include <jgrandson.h> #include <uchar.h> // Optional: enable unicode string literals (C11) // Optional, but makes Jgrandson return value checking a little less cumbersome. #define FOO_GUARD_JG(_ret_val) if ((_ret_val) != JG_OK) return -1 struct { char * * strings; size_t string_c; bool is_poor_example; ...
/* * Keypad2Nokia5110.c * * Created: 4/13/2018 1:10:49 AM * Author : Paul */ #include <avr/io.h> #include <util/delay.h> #include <string.h> #include "keypad.h" #include "nokia5110.h" unsigned char previous_key = '\0'; unsigned char tmp; unsigned char pushed_key; unsigned int num_times_key_pushed = 0; unsigned ...
#include "enemies.h" //min 1, max 3 int ENEMIES_SPEED = 2; //===========================================inimigos simples================================= //configura inimigos void init_enemy(Enemy *enemy, int enemy_type) { enemy->coordenates.radius = BASIC_ENEMY_RADIUS; enemy->coordenates.x1 = SCREEN_W + ra...
#include "fill.h" /* Fill triangles with scan-line conversion * Lots' o cases * -top is flat, bottom is flat, no height at all * 1) order points * lets say a, b, c is the order from top to bottom * 2) find slope of ab and ac: traverse down incrementing a t value and drawing horizontal lines * 3) find slope of ac ...
/* * AVLtree.c * * Created on: Jul 28, 2020 * Author: josnyder */ // C program to insert a node in AVL tree #include<stdio.h> #include<stdlib.h> #include "AVLtree.h" #include "leaf.h" //#include "audiostream.h" int AVL_memory_position = 0; int AVL_memory_offset = 0; int blocksUsed[512] = {0}; // A utili...
/* * ATMega2560.c * * Created: 04/10/2019 10:13:13 * Author : Einar */ #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <stdio.h> #include "drivers/uart.h" #include "drivers/mcp.h" #include "drivers/spi.h" #include "drivers/can.h" #include "drivers/pwm.h" #include "drivers/adc.h" #...
#include <assert.h> #include <stdint.h> #include <string.h> #include "rs.h" #include "utils.h" static uint8_t gfmul(uint8_t x, uint8_t y, const uint8_t *alpha, const uint8_t *logtable, int n); static uint8_t gfdiv(uint8_t x, uint8_t y, const uint8_t *alpha, const uint8_t *logtable, int n); static uint8_t gfpow(uint8_t...
/* * Licensed under a two-clause BSD-style license. * See LICENSE for details. */ #include "git-compat-util.h" #include "sliding_window.h" #include "line_buffer.h" #include "svndiff.h" /* * svndiff0 applier * * See http://svn.apache.org/repos/asf/subversion/trunk/notes/svndiff. * * svndiff0 ::= 'SVN\0' window...
/*----------------------------------------------------------------------------- *\drivers\usb\host\mtk_quirks.c * * MT53xx USB driver * * Copyright (c) 2008-2012 MediaTek Inc. * $Author: dtvbm11 $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General P...
/** *@file ocpp_process.c *@author <NAME> *@version 1.4 *@date 20 August 2019 *@brief This library is the entry point of OCPP Process, all the states are handled here. * With the help of ocpp_helper and ocpp_ws_client, it follows https://www.oasis-op...
/* * SCRNSAVE.C - default screen saver. * * this app makes a IdleWild screen saver compatible with the windows 3.1 * screen saver interface. * * Usage: SCRNSAVE.EXE saver.iw [/s] [/c] * * the IdleWild screen saver 'saver.iw' will be loaded and told to * screen save. if '/c' is spec...
#include <limits.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "test.h" static char buffer[100]; static void checkStrftime(const char* format, const struct tm* tm, const char* expected) { size_t resultLength = strftime(buffer, sizeof(buffer), format, tm); if (resultLength != 0 && strcmp(b...
/* 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...
/*---------------------------------------------------------------- // // // boot-loader-ethmac.c // // // // This file is part of the Amber project ...
/* * Copyright (c) 2014, 2016-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyrigh...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * massF14.c * * Code generation for function 'massF14' * */ /* Include files */ #include <string.h> #include...
/* * 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 program is distributed in the hope that it will be use...
#include <linux/bio.h> #include <linux/device-mapper.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/module.h> #include <linux/uaccess.h> #include "lsmt.h" /* This is a structure stores information about the underlying device * Param: * dev : Underlying device * start: ...
#include "common.h" #include "BinaryUtil.h" #include "Packet.h" #include "PacketParser.h" #include "PacketBuilder.h" #include "TlvReader.h" #include "FrameBuffer.h" #define DEBUG_LOG_LEVEL DEBUG_LOG_LEVEL_INFO #include "Debug.h" // 10min = 600000000us // #define MAX_BUFFERED_TIME_ALLOWED (10 * 60 * ...
/** @file regex_example.c @author <NAME> <http://www.mitchr.me/> @Copyright Copyright 1994 by <NAME>. All rights reserved. @brief UNIX regex tools@EOL @Keywords UNIX regular expressions regex @Std ISOC POSIX.2 (IEEE Std 103.2) BSD4.3 This is an example program intended to illustrate ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <signal.h> #include <fcntl.h> #include <sys/resource.h> #include <sys/socket.h> #include "policy.h" #include "util.h" #include "ae.h" #include "anet.h" #define MAX_WRITE_PER_EVENT 1024*1024*1024 #define CLIENT_C...
/* * Node utility functions * $Id$ * -- * Authors * * - <NAME> <<EMAIL>> * * Copyright (c) 2008, 2009 <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: * * * Redistributions...