text
stringlengths
5.8k
28.2k
#include <assert.h> #include <cairo.h> #include <fcntl.h> #include <getopt.h> #include <librsvg/rsvg.h> #ifndef RSVG_CAIRO_H #include <librsvg/rsvg-cairo.h> #endif #include <limits.h> #include <math.h> #include <regex.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h>...
/* * linux specific part of the int10 module * Copyright 1999, 2000, 2001, 2002, 2003, 2004 <NAME> */ #ifdef HAVE_XORG_CONFIG_H #include <xorg-config.h> #endif #include "xf86.h" #include "xf86_OSproc.h" #include "xf86Pci.h" #include "compiler.h" #define _INT10_PRIVATE #include "xf86int10.h" #ifdef __sparc__ #define...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Fluent Bit * ========== * Copyright (C) 2019-2020 The Fluent Bit Authors * Copyright (C) 2015-2018 Treasure Data Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
/* * NTV2 alsa device interface * * Copyright 2016 AJA Video Systems Inc. All rights reserved. * * This program is free software; you may redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * THE SOFTWA...
/* Target-dependent code for NetBSD/sparc. Copyright (C) 2002-2016 Free Software Foundation, Inc. Contributed by Wasabi Systems, Inc. This file is part of GDB. 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 t...
/** * @file stream.c Generic Media Stream * * Copyright (C) 2010 Creytiv.com */ #include <string.h> #include <time.h> #include <re.h> #include <baresip.h> #include "core.h" enum { RTP_RECV_SIZE = 8192, RTP_CHECK_INTERVAL = 1000 /* how often to check for RTP [ms] */ }; static void stream_close(struct stream ...
/* ** Copyright 2005-2019 Solarflare Communications Inc. ** 7505 Irvine Center Drive, Irvine, CA 92618, USA ** Copyright 2002-2005 Level 5 Networks Inc. ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of version 2 of the GNU General Public License ...
/* * Copyright 2019 Espressif Systems (Shanghai) PTE LTD * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you unde...
/* * Copyright 2008-2018 <NAME> * * See LICENCE for the full copyright terms. */ #include <assert.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <errno.h> #include <stdio.h> #include <fsm/fsm.h> #include <fsm/pred.h> #include <fsm/print.h> #include <fsm/walk.h> #include <fsm/options.h> #...
/* * Copyright (c) 2012-2016 Synaptics Incorporated * * 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. */ #include <linux/kernel.h> #include <linux/rmi.h> #include <linux/input.h...
/* * Copyright 2019 International Business Machines * * 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 applicab...
// TODO: ensure interrupts are off #include <assert.h> #include <stddef.h> #include <stdint.h> #include <boot.h> #include <console.h> #include <cpu.h> #include <isr.h> #include <paging.h> #include <process.h> #include <pmm.h> #include <string.h> #include <vmm.h> #include <heap.h> page_directory_t *kernel_directory; ...
/* FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd. FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
/* $RCSfile$ Copyright (C) 1996-1997 Id Software, Inc. 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 i...
#include "lib_game.h" int initialSettings(){ initscr(); /* verifica se o terminal suporta cores */ if ( !has_colors() ){ endwin(); printf("O terminal não suporta cores\n"); return 0; } int maxRows, maxColumns; getmaxyx(stdscr, maxRows, maxColumns); /* verifi...
/*- * Copyright (c) 1980, 1992, 1993 * The Regents of the University of California. 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 abov...
/*----------------------------------------------------------------------------*/ /* Xymon RRD handler module. */ /* */ /* Copyright (C) 2004-2006 <NAME> <<EMAIL>> */ /* ...
/* -*- c -*- */ /* * Copyright 2014 <NAME> techie AT whiterocker.com * * This file is part of libbtbb * * 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, or (at your optio...
/* life3.c v1.0 Created by <NAME> (URN:6213642) */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* The maximum board width and height from the specification */ #define MAX_BOARD_WIDTH 78 #define MAX_BOARD_HEIGHT 50 /* The maximum period that the program is capable of detecting. Using a larger maxi...
#include <drivers/screen/screen.h> int print_char(char c, int col, int row, char attr); int get_offset(int col, int row); int get_offset_row(int offset); int get_offset_col(int offset); /********************************************************** * Public Kernel API functions * ***********...
#define ADDRESS 32768 #define CLEAR 24575 #define RUN 32768 #define MAX_LEN 65535 #define VERSION "bin2tap v.1.3" #include <stdio.h> #include <string.h> int str2int (char *str, int *num) { int i=0; *num = 0; while (str[i] != 0) { if (str[i] <= '9' && str[i] >= '0') { *num *= 10; *num += str[i++] - '0'; ...
/** * Copyright (c) 2005, by: <NAME> <<EMAIL>> * * This file may be used subject to the terms and conditions of the * GNU Library General Public License Version 2, or any later version * at your option, as published by the Free Software Foundation. * This program is distributed in the hope that it will be us...
/*- * Copyright (c) 1996 - 2001 <NAME> <<EMAIL>> * based on work by <NAME> <<EMAIL>> * Internet Initiative Japan, Inc (IIJ) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following co...
/* $OpenBSD: msg.c,v 1.26 2016/01/06 22:29:38 millert Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * Copyright (c) 1991, 1993, 1994, 1995, 1996 * <NAME>. All rights reserved. * * See the LICENSE file for redistribution information. */ #incl...
#pragma once #include <stdint.h> #include <math.h> #include <stdbool.h> /* Redefinition of numerical types for personal reasons lol */ typedef int8_t i8; typedef uint8_t u8; typedef int16_t i16; typedef uint16_t u16; typedef int32_t i32; typedef uint32_t u32; typedef int64_t i64; typedef uint64_...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
/* * HEVC Annex B format parser * * Copyright (C) 2012 - 2013 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 * version 2.1 of the Lic...
/* * howsit.c * */ #include <sys/socket.h> #include <sys/types.h> #include <netdb.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <sys/time.h> #include <time.h> #include <ncurses.h> #include <assert.h> #incl...
/* * (C) Copyright 2005- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
/** * * (C) Copyright 2020-2021 Hewlett Packard Enterprise Development LP * * * * 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 ...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2011 * <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 ...
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Re...
/* Copyright (c) 2014 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applica...
/* * * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * The contents of this file are provided under the Software License * Agreement that you accepted before downloading this file. * * This source forms part of the Software and can be used for educational, * training, and demonstration purpos...
/*- * Copyright (c) 1998 <NAME> * Copyright (c) 1994 <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 * noti...
/* * * Chinese Academy of Sciences * State Key Laboratory of Information Security, * Institute of Information Engineering * * FELICS - Fair Evaluation of Lightweight Cryptographic Systems * * Copyright (C) 2016 Chinese Academy of Sciences * * Written in 2016 by <NAME> <<EMAIL>>, * <NAME> <<EMAIL>>, *...
/*************************************************************************** snesdsp2.c File to handle emulation of the SNES "DSP-2" add-on chip. Original C++ code by byuu, based on research by Overload. Byuu's code is released under GNU General Public License version 2 as published by the Free Software Fo...
/******************************************************************************* Copyright (c) 2016 NVIDIA Corporation 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 restr...
/********************************************************************************************** * * raylib - Advance Game template * * Gameplay Screen Functions Definitions (Init, Update, Draw, Unload) * * Copyright (c) 2014 <NAME> (@raysan5) * * This software is provided "as-is", without any express or implied...
/* getopt.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__6 = 6; /* $Procedure GETOPT ( Get an option from a menu ) */ /* Subroutine */ int getopt_(char *ti...
/* * Chromium OS cros_ec driver - sandbox emulation * * Copyright (c) 2013 The Chromium OS Authors. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <cros_ec.h> #include <ec_commands.h> #include <errno.h> #include <hash.h> #include <malloc.h> #include <os.h> #include <sha256.h> #include <spi...
/* * HelloPico - A very simple application using the PicoWAN SDK * * NOTE: When the user presses a button, HelloPico sends a message using the * PicoWAN network. It should be used as an example/starting point * by anyone wishing to develop an application based on the PicoWAN/LoRaWAN * dual stack...
/* * (COPYRIGHT) Copyright (C) 2008, 2009, The ONS Team. * This file is part of ONS, see COPYING for details. */ /* * File information: * - Created: 20. December 2008 * - Lead-Dev: - <NAME> * - Contributors: / * - Last-Change: 26. May 2009 */ /* Hash list implementation. * The hash algorithm is based on the...
#include "websocket.h" extern server_t* g_server; void* wsHandle(void* client_arg) { // detaches thread and sets up ws_client pthread_detach(pthread_self()); pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL); ws_client* client = (ws_client*)client_ar...
/* * Phoenix-RTOS * * ls - lists files and directories * * Copyright 2017, 2018, 2020, 2021 Phoenix Systems * Author: <NAME>, <NAME>, <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include <dirent.h> #include <errno.h> #include <grp.h> #include <pwd.h> #include <stdint.h> #include <stdio.h>...
//Day25a.c // //The twenty-fifth and last challenge is to modify our assembly interpreter from //Day 23 with a new instruction, which outputs data. This instruction can be //used to generate a clock signal -- alternating zeros and ones. As a reminder, //the previous instructions were: // // cpy x y Copy x (a ...
/* ============================================================================= * Copyright (c) Texas Instruments Incorporated 2016 * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions o...
/** * emulate the audio processing unit (APU) of the Game Boy. * Based on MiniGBS: https://github.com/baines/MiniGBS */ #include <math.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "apu.h" /* Enable high-pass filter */ #define ENABLE_HIPASS 1 #define AUDIO_NSAMPLES ...
/* * Microsemi Switchtec(tm) PCIe Management Library * Copyright (c) 2017, Microsemi Corporation * * 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...
/************************************************************************************\ hpaio.c - HP SANE backend for multi-function peripherals (libsane-hpaio) (c) 2001-2008 Copyright HP Development Company, LP Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
/* TFTP Server OTA support * * For details of use see ota-tftp.h * * Part of esp-open-rtos * Copyright (C) 2015 Superhouse Automation Pty Ltd * BSD Licensed as described in the file LICENSE */ #include <FreeRTOS.h> #include <string.h> #include <strings.h> #include "lwip/err.h" #include "lwip/api.h" #include "lw...
/* spat2b.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__0 = 0; static integer c__1 = 1; /* $Procedure SPAT2B ( SPACIT, convert transfer to binary ) */ /* Subr...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include "arbre.h" infos_noeud* initialiser_donnees_noeud(char* ville, int distance, int duree, bool contient_arrivee){ infos_noeud* resultat = NULL; if(ville != NULL){ //on alloue l'espace pour les donnees du noeud resultat = (in...
/* MIT License * * Copyright (c) <NAME> 2017 * * 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, merg...
/* Read a virtual microscope slide using OpenSlide. * * <NAME> * * Copyright (c) 2011-2015 Carnegie Mellon University * * 26/11/11 * - initial version * 27/11/11 * - fix black background in transparent areas * - no need to set *stop on fill_region() error return * - add OpenSlide properties to image metadata...
#define _GNU_SOURCE #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <fcntl.h> #include <sched.h> #include <string.h> #include <sys/mman.h> #include <sys/mount.h> #include "container.h" #define CHILD_STACK_SIZE ...
/* Copyright (c) 1993-Present, <NAME>, Acadix Software Systems 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 noti...
/* © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.*/ /** * \file ordlist_valois.c * * An implementation of a lock free ordered ordlist by <NAME>. * * \author eaburns * \date 2009-03-19 */ #define _POSIX_C_SOURCE 200112L #include <assert.h> #include <stdio.h> #include <stdli...
#include <libutil.h> #include "s3_cfg.h" #include "fsg.h" static void prune_states(s2_fsg_t *_fsg); static void mark_dead_state(s2_fsg_t *_fsg, int _state, int *_marks, glist_t *_adj); static void convert_cfg_rule(s3_cfg_t *_cfg, s2_fsg_t *_fsg, s3_cfg_rule_t *_rule, int _src, int _dest, int *_expans...
/* * 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...
/* ============================================================================ * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005 * * Use of this software is controlled by the terms and conditions found in the * license agreement under which this software has been supplied. * =============...
/* BEGIN_ICS_COPYRIGHT7 **************************************** Copyright (c) 2015-2017, Intel Corporation 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 copyrig...
#include "msgbus.h" #include "uart.h" #include "request.h" #include "req_queue.h" #include "error_handler.h" #include "config.h" #define RESPONSE_QUEUE_MAX (4U) #define RESPONSE_TIMEOUT_TICKS (2U) #define SEND_COMPLETE_MASK (0x01U) #define RECEIVE_COMPLETE_MASK (0x02U) // Public, so that contents can be inspected du...
/* Code ported from Adafruit_LEDBackpack: *************************************************** This is a library for our I2C LED Backpacks Designed specifically to work with the Adafruit LED Matrix backpacks ----> http://www.adafruit.com/products/ ----> http://www.adafruit.com/products/ These displays use I2C to comm...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <esp_wifi.h> #include "iothub_client.h" #include "iothub_message.h" #include "a...
/* * XDPSpreview.c * * (c) Copyright 1990-1994 Adobe Systems Incorporated. * All rights reserved. * * Permission to use, copy, modify, distribute, and sublicense this software * and its documentation for any purpose and without fee is hereby granted, * provided that the above copyright notices appear in all c...
/* Code translation -- generate GCC trees from gfc_code. Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Contributed by <NAME> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by t...
#include <stdlib.h> #include <iodefine.h> #include <stdint.h> #include <string.h> #define TITLE_FONT_HEIGHT 16 #define LCD_DISPLAY_WIDTH_PIXELS 480 #define LCD_DISPLAY_HEIGHT_PIXELS 272 extern const uint16_t font_positions[]; extern const uint8_t font_bitmap[]; const uint32_t gr2_base_address = 0x00800000U; void l...
/** * FreeRDP: A Remote Desktop Protocol Client * Gateway * * Copyright 2012 Fujitsu Technology Solutions GmbH - * <NAME> <<EMAIL>> * Copyright 2014 <NAME> - <EMAIL> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lice...
#include <math.h> #include <float.h> #include <stdio.h> #include "nr_util.h" #include "ad_globl.h" #include "ad_frsnl.h" #include "ad_bound.h" #include "iad_type.h" #include "iad_calc.h" #include "iad_pub.h" #include "iad_util.h" unsigned long g_util_debugging = 0; #define BIG_A_VALUE 999999.0 #define SMALL_A_VALUE 0...
#include "glbopts.h" #include "linalg.h" #include "amatrix.h" #include "matrix.h" #include "mex.h" #include "scs.h" #include "util.h" void free_mex(ScsData *d, ScsCone *k); scs_int parse_warm_start(const mxArray *p_mex, scs_float **p, scs_int l) { *p = (scs_float *)scs_calloc( l, sizeof(scs_float)); /* this a...
#include "kadimus_str.h" #define b64pos(ch) (strchr(b64, ch)-b64) static const char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; char *b64encode(const char *data, int len){ char ch[3], *ret = NULL, *aux; int i = 0, j = 0, pad; if(!len) goto end; aux = malloc(((...
//Developer name: <NAME> //<EMAIL> //Name: <NAME> //GitHub username : akaldhafer //Email : <EMAIL> //program title: Pharmacy Management System #include<stdio.h> //the header file stands for standard input/output// #include <stdlib.h> // header of the general purpose standard library of C programming// #include<math...
/* Copyright 2019 <NAME> THIS SOFTWARE IS CONTRIBUTED SUBJECT TO THE TERMS OF YOU MAY OBTAIN A COPY OF THE LICENSE AT https://www.apache.org/licenses/LICENSE-2.0. THIS SOFTWARE IS LICENSED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMP...
/* * Copyright 2003-2004 The Apache Software Foundation. * * 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 req...
#include "builtin.h" #include "commit.h" #include "refs.h" #include "pkt-line.h" #include "sideband.h" #include "run-command.h" #include "remote.h" #include "send-pack.h" #include "quote.h" #include "transport.h" static const char send_pack_usage[] = "git send-pack [--all | --mirror] [--dry-run] [--force] [--receive-p...
/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * 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 requi...
/****************************************************************************** * pgmskew: skew correction * * COMPILE: gcc -o pgmskew pgmskew.c libpbm.c libpgm.c libprep.c -lm -O3 * PRHTL Group ******************************************************************************/ #include <version.h> #include <float.h> #i...
#define BYTES_PER_SECTOR 512 #define SECTORS_PER_TRACK 18 #define TRACK_SIZE (SECTORS_PER_TRACK * BYTES_PER_SECTOR) #define TRACKS_ON_DISK (80 * 2) // * 2 because it is double-sided #define CPCLASS_DEFAULT 99 #define CPCLASS_EGA 0 #define CPCLASS_EGA2 1...
/* Framework for testing with a server process Copyright (C) 2001-2010, <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 you...
#include "link-includes.h" #include "alink.h" #include "translator.h" void initialize_positions(int startword) { int n; for(n=0; n<100; n++) { /* kind of crude... */ word_position[n]=-1.0; } word_position[startword] = 0.0; } int position_words(Dictionary dict, Alink * alink, int curren...
/* $Id$ newfmt.c My attempt to write a format using unions &c to avoid nasty casting all over the place */ #include "newfmt.h" #include <string.h> /* some options on the format are controlled by global variables. Of course for efficiency we'd do it in the pre-processor, but that would require recompilatio...
/** vpn.c Copyright (c) 2014 clowwindy 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, publis...
/* * 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...
#include <stdio.h> #include <math.h> #include <time.h> #define InitLength 2000 #define Symble_add -1 #define Symble_sub -2 #define Symble_mul -3 #define Symble_div -4 #define Symble_factorial -5 #define Symble_exponentiation -6 #define Symble_pi -7 #define Symble_e -8 #define Symble_mod -9 #define Symble_sign -10 #de...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
#include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <string.h> #include <linux/msg.h> #include <linux/sem.h> #include <linux/shm.h> #include <fcntl.h> #include <limits.h> #include "zdtmtst.h" #define CLONE_NEWIPC 0x08000000 extern int msgctl (int __msqid, int __cmd, struct ...
/***************************************************************************** * * XVID MPEG-4 VIDEO CODEC * - Inverse DCT - * * Copyright (C) 2006-2011 Xvid Solutions GmbH * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
/* * Ancient UNIX File Systems for MacFUSE * <NAME> * http://osxbook.com */ #include "ancientfs_tar.h" #include "unixfs_common.h" #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/stat.h> DECL_UNIXFS("UNIX V7 ...
/* Copyright (C) 1996-2001 Id Software, Inc. Copyright (C) 2002-2009 <NAME> and others Copyright (C) 2011-2013 OldTimes Software 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 ...
#include <print.h> #include <syscall.h> #include <launcher.h> #include <defs.h> #include <bug.h> #include <fs_defs.h> #include <ipc.h> #include <string.h> #include <proc.h> #define SERVER_READY_FLAG(vaddr) (*(int *)(vaddr)) #define SERVER_EXIT_FLAG(vaddr) (*(int *)((u64)vaddr + 4)) extern ipc_struct_t *tmpfs_ipc_str...
/* Copyright 2010-2013 SourceGear, 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
#include "btreenode.h" #include "lista.h" #include <stdio.h> #include <stdlib.h> #include <string.h> BTreeNode_t create_node(int grau, bool folha, int (*compare)(void *this, void *other)) { BTreeNode_t this = (BTreeNode_t) calloc(1, sizeof(*this)); this->grau = grau; this->folha = folha; this->compare = co...
// // Copyright 2009 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // #include <string.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <unistd.h> #include <sys/resource.h> #include <sys/errno.h...
#include "solitgame.h" #include "solitdefs.h" #include "solitui.h" #include "solitlogic.h" #include "solitstack.h" #include "carddefs.h" #include "gamedefs.h" #include "cardutility.h" #include "structhelper.h" #include "fileops.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define NCARDS_STOCK 24 #def...
/** * rutabaga: an OpenGL widget toolkit * Copyright (c) 2013-2018 <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 copyr...
/*- * Copyright (c) 2009-2012 Microsoft Corp. * Copyright (c) 2012 NetApp Inc. * Copyright (c) 2012 Citrix 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 s...
/* particle.c <NAME>, 1998 An example of a simple particle system. */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <GL/glut.h> #ifdef _WIN32 #define drand48() ((float)rand()/RAND_MAX) #endif /* #define SCREEN_SAVER_MODE */ #define PS_GRAVITY -9.8 #define P...
#include "demo_utils.h" #include "demo_light.h" #include "demo_database.h" #include "ap_utils.h" #include "ap_render.h" #include "ap_model.h" #include "ap_camera.h" #include "ap_cvector.h" #include "ap_shader.h" #include "cglm/cglm.h" #include "ap_audio.h" #include "ap_physic.h" #include "ap_math.h" #include "ap_sqlit...
//============================================================== //This provides the WSPR codec. //This is part of the CarelessWSPR project. //Details of the encoding process can be found in //WSPR_Coding_Process.pdf //<NAME> G4JNT June 2009 #include "wspr.h" #include <ctype.h> #include <string.h> #inclu...