text
stringlengths
3.12k
18.7k
#include "mgos.h" #include "mgos_spi.h" #include "mgos_ili9341.h" #include "mgos_ili9341.h" #include "mgos_ads7843.h" #include "lv_conf.h" #include "lvgl/lvgl.h" #include "lv_hal_disp.h" #include "lv_hal_disp.h" #include "lv_color.h" #include "setup_wifi/scan_wifi_networks.h" #include "setup_wifi/setup_wifi_gui.h" #in...
/* * config.c - parse the ssh config file * * This file is part of the SSH Library * * Copyright (c) 2009 by <NAME> <<EMAIL>> * * The SSH 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 Founda...
#include "entities/landscape.h" #include "assets/terrain.h" #include "assets/texture.h" landscape_blobtree* landscape_blobtree_new(landscape* l) { terrain* terr = asset_hndl_ptr(&l->heightmap); vec3 scale = vec3_new(-(1.0 / terr->width) * l->size_x, l->scale, -(1.0 / terr->height) * l->size_y); vec3 transla...
/* * Copyright (c) 2016 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 * * Unless requ...
#include <stdio.h> #include <time.h> #include <unistd.h> #include <stdlib.h> #define CITIES 5 #define INF 99 int travel_path[CITIES] = {0}, pos=0; int been_there[CITIES] = {0}; int cost_matrix[CITIES][CITIES] = { {INF, 20, 30, 10, 11}, {15, INF, 16, 4, 2}, {3, 5, INF, 2, 4}, {19, 6, 18, INF, 3}, {...
/* * Copyright (c) 2003, 2007-8 <NAME> * Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology * * 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,...
/* mdbQuery - Select objects from metaDb table. Print all or selected fields in a variety * of formats. */ /* Copyright (C) 2011 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "local...
static VALUE ps_state(volatile VALUE obj, volatile VALUE pid) { int _pid = FIX2INT(pid) ; if (_pid < 0) return rb_str_new_cstr("") ; char _path[22] ; sprintf(_path, "/proc/%d/stat", _pid) ; FILE *f = fopen(_path, "r") ; if (!f) return rb_str_new_cstr("") ; char _s[1] ; char status = fscanf(f, "%*llu (%*[^)]...
/* Copyright (c) 2007-2009, Stanford University * 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 ...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <unistd.h> #include <sys/syscall.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/time.h> #include "utils/heap.h" #include "utils/utarray.h" #include "Syscall.h" #include "RegFile.h" #include "...
// Program Name: smallsh.c // Last Modified: 2/20/20 // Author: <NAME> // Description: // Program implements a shell with a limited set of built commands. // // Non-built in commands are run using exec(). // Program uses fork() to create child processes when non built-in commands ar...
/* NMC_TEST2.C */ /* <NAME> * 12-May-2000 Debug problem with PPC */ #define MEM_SIZE 2048 #include "nmc_sys_defs.h" #include <stdio.h> int ndl_diffdecm_test(unsigned char *input, int channels, int *output, int chans_left, int *actual_chans); int nmc_test2(char *interface, int low_address) { ...
/* * SCGlib : A C library for the spectral coarse graining of matrices * as described in the paper: Shrinking Matrices while preserving their * eigenpairs with Application to the Spectral Coarse Graining of Graphs. * Preprint available at <http://people.epfl.ch/david.morton> * * Copyright (C) 2008 <NAME> <<E...
#include "config.h" // defines (or not) HAVE_CUDA #include "src/opts.h" #include "src/filter.h" // defines: int filters(nd_t hs[3],float scale). Caller is responsible for freeing the returned nd_t objects in hs. #include <nd.h> #include <stdio.h> #include <stdlib.h> #define LOG(...) printf(__VA_ARGS__) #defi...
// <NAME> // 2013 CC BY-NC-SA 4.0 http://patrick.yevsukov.com // github.com/PatrickYevsukov/Statistics-Calculator #include "stat_mode.h" #include "stat_mode_test.h" int main(int argc, char **argv) { TestStatMode(); return EXIT_SUCCESS; } void TestStatMode() { int ii = 0; int jj = 0; int ei...
/* * 3pi-demo-or-serial-slave - demo code or serial slave for the Pololu 3pi Robot * * If the 3pi receives anything on its serial port, it switches into * serial slave mode. * * http://www.pololu.com/docs/0J21 * http://www.pololu.com/docs/0J20 * http://www.pololu.com * http://forum.pololu.com * ...
#include <string.h> #include <math.h> #include <stdlib.h> #include "zmabend.h" #include "zvproto.h" #include "cartoLsqUtils.h" #include "cartoStrUtils.h" /*===================================================================== dgauss dgauss solves a set of linear equations via gaussian elimination arguments: ...
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #define PARAM_BUFFER_SIZE 1024 //#define PARAM_CLIENT_ADDRESS "192.168.43.106" #define PARAM_CLIENT_ADDRESS "127.0.0.1" #define...
/* Copyright (c) 2001-2002 <NAME> "The MIT license" 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...
// License: MIT // Adapted from Adafruit Arduino Library // https://github.com/adafruit/Adafruit-ST7735-Library // Copyright 2022 (c) Zork 'zorkzorkus' Zorkus // (c) Adafruit Industries #include "st7735.h" #include <stdio.h> #define DISPLAY_DELAY 0x80 #define ST77XX_NOP 0x00 #define ST77XX_SWRESET 0x0...
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Thermal engine module for Chrome EC */ #include "chipset.h" #include "common.h" #include "console.h" #include "gpio.h" #include "host_comma...
#include "hardware.h" int spc_rd_io_a(void* p) { Computer* comp = (Computer*)p; int res; int msk = (comp->ppi->b.dir == PPI_OUT) ? comp->ppi->b.val : 0xff; res = -1; for (int row = 2; row < 8; row++) { if (!(msk & (1 << row))) res &= comp->keyb->map[row]; } return res; } // technically, if A out, C.low o...
/* * Name: openFiles * Input: number of command-line arguments, argc * array of command-line argument strings, argv * Output: input FILE pointer * output FILE pointer * metrics FILE pointer * Return: OPEN_FILES_SUCCESS, or...
#include "BlueOS_switcher.h" #include "BlueOS_utilities.h" #include "BlueOS_clocks.h" #include "BlueOS_config.h" #include "BlueOS_console.h" #include "BlueOS_startup.h" /* Static Variables */ static uint32_t* task_Table_Index; static uint32_t* schedule_Table_Index; uint32_t* stack_Table[NUMBER_OF_TASKS]; static vol...
/********************************************************************** * * This file is part of the AWeb-II distribution * * Copyright (C) 2002 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the AWeb Public License as included in this * distribution. *...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
//***************************************************************************** // Filename : 'bigdigit.c' // Title : Animation code for MONOCHRON big digit clock //***************************************************************************** #include "../global.h" #include "../glcd.h" #include "../anim.h" #include...
#include "ccl_core.h" #include "ccl_utils.h" #include "ccl_placeholder.h" #include "math.h" #include "stdio.h" #include "stdlib.h" #include "gsl/gsl_integration.h" #include "gsl/gsl_spline.h" #include "ccl_background.h" #include "ccl_constants.h" #include "ccl_error.h" #include "ccl_lsst_specs.h" #include "ccl_params.h...
/* Copyright (C) Intel Corp. 2006. All Rights Reserved. Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to develop this 3D driver. 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 ...
#pragma GCC diagnostic push #ifdef __clang__ #pragma GCC diagnostic ignored "-Wlanguage-extension-token" #endif #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #pragma GCC diagnostic ignored "-Wmissing-braces" #include "test_lexer.h" #include <assert.h> #include <stdio.h> #include "lexer.h" #include "c...
/* Copyright (c) 2015 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, distribute, subli...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <byteswap.h> //#include <libusb-1.0/libusb.h> //#include <hidapi/hidapi.h> #include <getopt.h> #include <png.h> #include "badge.h" #include "gfx/gfx_invader_vert.h" #include "gfx/gfx_press_start_long.h" #includ...
#include <stm32f10x_rcc.h> #include <stm32f10x_gpio.h> #include <stm32f10x_tim.h> #include <stm32f10x_rtc.h> #include <lcd1602.h> #include <delay.h> #include <rtc.h> // -------------------------------------------------- // // Rotary Encoder direction typedef enum { FORWARD, BACKWARD } Direction; // Rotary encoder va...
/* * adfbb.c * * Check boot block in an Amiga Disk File (ADF) image and optionally fix. * * Written in 2011 by <NAME> */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <time.h> #include ...
/** * Created by MomoLuaNative. * Copyright (c) 2019, Momo Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. */ #include <stdlib.h> #include <string.h> #include ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #define STR_SIZE 20 typedef struct{ //definition of type to be stored int id; char fname[STR_SIZE]; char lname[STR_SIZE]; }data_t; typedef struct{ //definition of stack type size_t size; size_t quantity; data_t* ar...
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <mspack.h> #include <system.h> #define FILENAME ".chminfo-temp" unsigned char *load_sys_data(struct mschm_decompressor *chmd, struct mschmd_header *ch...
/* setsockopt functions * Copyright (C) 1999 <NAME> * * This file is part of GNU Zebra. * * GNU Zebra 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 option) any * later v...
/* * Remote Temperature Sensor Transmitter Module * Copyright (C) 2019 <NAME> * * Processor: PIC16F18325 * * The following macros must be defined on the XC8 command line or in project properties: * _XTAL_FREQ - CPU speed in Hz (Fosc) - must be 32000000 for this driver * RF_CHANNEL - the channel to use for the ...
/** * tagcrypt/tagcryptotut.c * Copyright (C) 2005-2012 Opersys inc., All rights reserved. * * Tagcrypt OTUT management function. * * @author <NAME> */ #include <assert.h> #include <unistd.h> #include <fcntl.h> #include <kbuffer.h> #include "tagcryptskey.h" #include "tagcryptotut.h" #include "tagcryptsignature...
/* SPDX-License-Identifier: MIT */ #include "uartproxy.h" #include "assert.h" #include "exception.h" #include "iodev.h" #include "proxy.h" #include "string.h" #include "types.h" #include "utils.h" #define REQ_SIZE 64 typedef struct { u32 _pad; u32 type; union { ProxyRequest prequest; stru...
/* ----------------------------------------------------------------------- * * * Copyright 2011 <NAME> - 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 in the Software wi...
/* * Part of DNS zone file validator `validns`. * * Copyright 2011-2014 <NAME> <<EMAIL>> * Modified BSD license. * (See LICENSE file in the distribution.) * */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <ctype.h> #include "base32hex.h" /* base32/normal alignment: * ...
/* $OpenBSD: ophandlers.c,v 1.14 2015/08/20 22:39:29 deraadt Exp $ */ /* $NetBSD: ophandlers.c,v 1.2 1996/02/28 01:13:30 thorpej Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redis...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and library */ /* SCIP --- Solving Constraint Integer Programs */ ...
/* * * Copyright (C) 2018 XLAB d.o.o. * * This program is free software; you can redistribute it and/or modify * it under the terms of either: * * * the GNU Lesser General Public License as published by the Free * Software Foundation; either version 3 of the License, or (at your * option) any later ...
/** ** udp_serverlib.c - UDP server functions **/ #define PLATFORM_WINDOWS 1 #define PLATFORM_MAC 2 #define PLATFORM_LINUX 3 #include <stdio.h> #include <stdlib.h> #include <string.h> #include "commander.h" #include "udp_api.h" #if defined(_WIN32) #define PLATFORM PLATFORM_WINDOWS #elif defined(_...
#include "../spredis.h" const static SPGeoHashRange SPLATBOUNDS = {.max = 85.05112878, .min = -85.05112878}; const static SPGeoHashRange SPLONBOUNDS = {.max = 180.0, .min = -180.0}; #define D_R (M_PI / 180.0) static inline double spdeg_rad(double ang) { return ang * D_R; } static inline double sprad_deg(double ang) ...
/* // Copyright 2009-2020 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2020, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level direct...
/* Table of index changes */ const int IndexTable[16]; /* const int IndexTable[16] = { */ /* 255, 255, 255, 255, 2, 4, 6, 8, */ /* 255, 255, 255, 255, 2, 4, 6, 8 */ /* }; */ /* Quantizer step size lookup table */ const long SetSizeTable[89]; /* const long SetSizeTable[89] = { */ /* 7, 8, 9, 10, 11, 12, 13, 14, 1...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
#include <stdio.h> #include "lpclib.h" #include "bsp.h" #if defined(__GNUC__) #define __stdout (*stdout) #define __stdin (*stdin) #define _Handle _file #endif #if !defined(__ICCARM__) struct __FILE { UART_Handle _Handle; /**< Handle for UART */ }; #endif ...
#include <fcntl.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <unistd.h> #include "mtd.h" #include "uboot.h" static uint32_t crc32_for_byte(uint32_t r) { for (int j = 0; j < 8; ++j) r = (r & 1 ? 0 : (uint32_t)0xEDB8832...
/* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * * 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 re...
/* vi: set sw=4 ts=4: */ /* * Applet table generator. * Runs on host and produces include/applet_tables.h * * Copyright (C) 2007 <NAME> <<EMAIL>> * * Licensed under GPLv2, see file LICENSE in this source tree. */ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <limits.h> #include <stdlib...
/****************************************************************************** * * Copyright (C) 2014 Xilinx, Inc. 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 * in the Software wit...
#include "common_clib.h" /* The right hand side of the LLG equation for the CVOde solver. This can be * used both for the micromagnetic and atomistic codes since m or S are unitless * and the prefactors keep the same structure. * * The LLG equation has the structure: * ( * is for dot or scalar product) * * ...
#ifdef __DECC #pragma module skit_inheritance_table #endif /* Don't include this: it could create circular dependencies. */ /* In principle, anything that relies on feature emulation should be fairly domain-specific. */ /* If this principle is violated, then there will need to be some way to break apart the */ /* c...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> // access #include <math.h> #include <assert.h> #include "timer.h" #include "bd.h" #define M_PI 3.14159265358979323846 #define my_EPS 0.000000001 struct box { int head; }; // it is possible to use smaller boxes and more complex neighbor patterns #define ...
# include <xtables.h> #include "hstcal.h" # include "hstio.h" /* defines HST I/O functions */ # include "wf3.h" # include "wf3info.h" # include "hstcalerr.h" # include "wf3dq.h" typedef struct { IRAFPointer tp; /* pointer to table descriptor */ IRAFPointer cp_xstart, cp_ystart; /* star...
/******************************************************************************** * Copyright (c) 2020 AVL List GmbH and others * * This program and the accompanying materials are made available under the * terms of the Apache Software License 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2....
/* Processor-Based HW Thread Library */ #include "proc_hw_thread.h" // *********************************************************** // Utility Calls // *********************************************************** void initialize_interface( proc_interface_t * iface, int * baseAddr) { // Initialize all inte...
/* XPM loader, borrowed from imlib2 */ #include <ctype.h> #include <fcntl.h> #include <linux/limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include "xpm.h" static FILE *rgb_txt = NULL; static xpm_icon_t icon = {0}; unsigned int icon_count = 0; unsi...
#include <stdlib.h> #include "rbtree.h" rb_tree create_red_black_tree() { rb_tree tree; tree.nil = malloc(sizeof(rb_node)); tree.nil->color = BLACK; tree.root = tree.nil; return tree; } void left_rotate(rb_tree *tree, rb_node *x) { rb_node *y = x->right; x->right = y->left; if(y->left != tree->nil) y->le...
/* * CIFS user-space helper. * Copyright (C) <NAME> (<EMAIL>) 2007 * * Used by /sbin/request-key for handling * cifs upcall for kerberos authorization of access to share and * cifs upcall for DFS srver name resolving (IPv4/IPv6 aware). * You should have keyutils installed and add something like the * following lines to...
/* * ext3dump - Utility to dump raw file data from ext2/3 partition * * Written in 2012 by <NAME> <<EMAIL>> * * To the extent possible under law, the author(s) have dedicated * all copyright and related and neighboring rights to this software * to the public domain worldwide. This software is distributed * with...
#include "headers.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> int str_length(char* mystring){ int result = 0 ; int posititon = 0; while (mystring[posititon] != '\0') { posititon ++; result ++; } return result; } int str_copy(char* source, cha...
// MIT License // // Copyright (c) 2020 <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, merg...
#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <fcntl.h> #include <linux/fb.h> #include <sys/mman.h> #include <sys/ioctl.h> #define FB_NUM0 0 #define FB_NUM1 1 #define FB_NUM2 2 #define FB_NUM3 3 #define APP_NAME "fbtest" #define app_info(...) {printf(APP_NAME" info: "); printf(__VA_ARGS__);} #de...
/* * Copyright (c) 2014 - Qeo LLC * * The source code form of this Qeo Open Source Project component is subject * to the terms of the Clear BSD license. * * You can redistribute it and/or modify it under the terms of the Clear BSD * License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file * fo...
/* * Copyright (C) 2013 <NAME> <<EMAIL>> * * 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 and the f...
/* stdbuf -- setup the standard streams for a command Copyright (C) 2009-2011 Free Software Foundation, 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 3 of the Licens...
/* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
/* * STRUMPACK -- STRUctured Matrices PACKage, Copyright (c) 2014, The * Regents of the University of California, through Lawrence Berkeley * National Laboratory (subject to receipt of any required approvals * from the U.S. Dept. of Energy). All rights reserved. * * If you have questions about your rights to use...
#include <stdlib.h> #include <fmilib.h> #include <stdio.h> #include <stdarg.h> #include "config_test.h" #include <locale.h> static const int SHOULD_NOT_LOG_EXPECTED_MSG = 0; static const int SHOULD_LOG_EXPECTED_MSG = 1; static int did_not_log_expected_msg; static char *expected_message = "Invalid structured ScalarVar...
/* The MIT License (MIT) Copyright (c) 2015-? suhetao 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, publi...
#include <errno.h> #include <glob.h> #include <limits.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #define MILLIC_TO_C(n) (n / 1000) #define TEMP_FILES_GLOB "/sys/class/hwmon/hwmon*/temp*_input" #define FAN_CONTROL_FILE "/proc/acpi/ibm/fan" #de...
#include "os_sound.h" #include "log.h" #include "util.h" #include <alsa/asoundlib.h> #include <pulse/error.h> #include <pulse/simple.h> #include <assert.h> #include <stdio.h> #include <string.h> static const char* k_os_sound_default_device = "default"; /* NOTE: used to be 512, a bit aggressive but it seemed to work...
#include"md5.h" /** * author:zjufishboy * time :2020-3-12 */ char * md5(char * plaintext){ int i=0; int length=strlen(plaintext)+1; //step1:fill the data char * ciphertext=md5_step1(plaintext,length); int isbigEnd=0; testEnvBigEnd(&isbigEnd); //step2:circle calculation ciphertext=md...
/* * The software known as "DragonFly" or "DragonFly BSD" is distributed under * the following terms: * * Copyright (c) 2003, 2004, 2005 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * * Redistribution and use ...
/* Test that explicit_bzero block clears are not optimized out. Copyright (C) 2016-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publishe...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011-2012 Intel Corporation * Copyright (C) 2004-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 Softwa...
/* 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 Publi...
#include <stdio.h> #include <assert.h> #include <string.h> #include <stdlib.h> #include <math.h> #define BUFFER 40 #define INVALID -1 const char BASE64_ENCODER_LUT[65] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', ...
#include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdlib.h> #include <netdb.h> #include <string.h> #include <poll.h> #include <errno.h> #include <nghttp2/nghttp2.h> #include <signal.h> #include <pthread.h> #include <getopt.h> ...
// A line is a sequence of characters between two newlines. struct line { struct line* prev; // The previous line struct line* next; // The next line uint32_t* chars; // An array of characters contained in this line, excluding the trailing \n int len; // The length of chars int cap; // The capacity of chars }; /...
/* ==================================================================== * 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 t...
/* * Original AVISynth Filter Copyright (C) 2003 <NAME> * Adapted to MPlayer by <NAME> * * This file is part of MPlayer. * * MPlayer 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...
/* $NetBSD: fb.c,v 1.36 2001/09/19 19:04:16 thorpej Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> and <NAME>. * * Redistribution and use in source and binary forms, with or w...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" uint32_t x63 = 140541U; uint32_t x117 = 2085416761U; static int8_t x118 = 11; int16_t x120 = INT16_MIN; uint64...
/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
/*** * CU - C unit testing framework * --------------------------------- * Copyright (c)2007,2008,2009 <NAME> <<EMAIL>> * * * This file is part of CU. * * CU 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 Sof...
/* ================================================================================== Copyright (c) 2019-2021 Nokia Copyright (c) 2018-2021 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 License. You...
#include "gdt.h" #include "string.h" #include "debug.h" #include "registers.h" #include "pmm.h" #include "kernel.h" #include "locks.h" #include <stdint.h> #define GDT_ACCESSED 1 #define GDT_WRITABLE (1 << 1) #define GDT_DIRECTION (1 << 2) #define GDT_TYPE(t) ( ( (t) & 1) << 4 ) // 0...
/* * Copyright (c) 2003 <NAME> * Copyright (c) 2003 Massachusetts Institute of Technology * * 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 ...
/* ============================================================================ * Copyright (c) 2013 <NAME> (Purdue University) * Copyright (c) 2013 <NAME> (Purdue University) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that...
/* * fof * * This code has been extracted from the Csound opcode "fof". * It has been modified to work as a Soundpipe module. * * Original Author(s): <NAME> * Year: 1995 * Location: Opcodes/ugens7.c * */ #include <stdlib.h> #include <math.h> #include "utone.h" #define PFRAC1(x) ((UTFLOAT)((x) & ftp1->l...
/* nova_tt.c: NOVA console terminal simulator Copyright (c) 1993-2008, <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 ...
#include <string.h> #include <limits.h> #include <stdlib.h> #include <ctype.h> #include <stdio.h> #include "ler_arquivo.h" #include "cmd_params.h" #include "geracao_dados.h" #include "algs_ordenacao.h" #include "temporizacao.h" #include "resultados.h" #include "aleatorio.h" #include "opengl/renderer.h" const char* T...
//////////////////////////////////////////////////////////////////////// // COMP1521 19t3 ... assignment 1: emu -- a MIPS emulator // // 2019-10-15 v1.0 <NAME> <<EMAIL>> // Initial release onto unsuspecting students. // // // // // // // // DO NOT MODIFY THIS FILE! // // // // // // // // // #include <stdbool...