text
stringlengths
3.12k
18.7k
/*- * Copyright(c) 2016-2017 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "cli.h" #include "cli_input.h" #include "cli_file.h" struct cli_node * cli_file_open(const char *path, const char *type) { struct cli_node *node; uint32_t flags = 0; if (!path) return N...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
/* * $Id: render_view.c 37232 2011-06-06 00:42:36Z campbellbarton $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 Li...
/********************************************************************************** * Program to test the C implementation of the zxcvbn password strength estimator. * Copyright (c) 2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permi...
/************************************************************************** * * Copyright 2007-2021 VMware, 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 Softwar...
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2016 INRIA. * * 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 * *...
/* * Copyright (c) 2001 <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions...
/* * mkfs.bfs - Create SCO BFS filesystem - aeb, 1999-09-07 * */ #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <time.h> #include <unistd.h> #include "blkdev.h" #include "c.h" #include "nls.h" ...
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * Native Client mutex implementation */ #include <errno.h> #include <unistd.h> #include "native_client/src/include/nacl_compiler_an...
#include "loader/periph.h" #include "common/include/asm.h" #include "common/include/reg.h" #include "common/include/bootparam.h" #include "common/include/coreimg.h" #include "common/include/memory.h" #include "common/include/elf32.h" /* * Helper functions */ #define ALIGN_UP(s, a) (((s) + ((a) - 1)) & ~((a) - 1)) ...
#pragma once #include <float.h> #if FLT_EVAL_METHOD == 0 typedef float float_t; typedef double double_t; #elif FLT_EVAL_METHOD == 1 typedef double float_t; typedef double double_t; #elif FLT_EVAL_METHOD == 2 typedef long double float_t; typedef long double double_t; #else #error unknown value for FLT_EVAL_METHOD #end...
/*pit.c used to init periodic interval timer device*/ #include "pit.h" #include "types.h" #include "i8259.h" #include "lib.h" #include "system_call.h" #include "x86_desc.h" #include "systemfile.h" #include "terminal.h" int32_t scheduled_index=-1; int is_process_switch = 0; /* void init_pit(void) * Description: in...
/* $OpenBSD: tal.c,v 1.18 2020/04/11 15:52:24 deraadt Exp $ */ /* * Copyright (c) 2019 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and 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 copi...
/* * Copyright 2019 <NAME> * * See LICENCE for the full copyright terms. */ #include <assert.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <ctype.h> #include <fsm/fsm.h> #include "ac.h" enum { POOL_BLOCK_SIZE = 256 }; struct trie_pool { struct trie_pool *next; st...
/* * Copyright 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 copyright * notice, this list of conditions and ...
#include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> #include <assert.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "util.h" #include "parse.h" #include "mi.h" #include "asm.h" #include "../config.h" s...
/* Filename: colrops.c * Created by: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * PANDA 3D SOFTWARE * Copyright (c) <NAME>. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license al...
#include <OlsrdPudWireFormat/wireFormat.h> #include <time.h> /* ************************************************************************ * Validity Time * ************************************************************************ */ /* inline getValidityTime */ /** Set the validity time of the position update mess...
#include <xc.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include "hardware.h" #include "PowerMeter.h" #include "Tick.h" #include "UART2.h" #include "RN4020.h" typedef enum bOwner_t_def { bOwnerUser, bOwnerSystem }bOwner_t; typedef struct rnConfig_t_def { char config[...
/* * Copyright (c) Bridgetek Pte Ltd * * THIS SOFTWARE IS PROVIDED BY BRIDGETEK PTE LTD "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * BRIDGETEK PTE LTD BE LIABLE F...
/* circle_collision.c Copyright (c) 11 <NAME> (yann) 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, mod...
/* * Copyright (c) 2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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/LICE...
/*- * Copyright (C) 2012 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
/* * (C) Copyright 2008-2009 * BuS Elektronik GmbH & Co. KG <www.bus-elektronik.de> * <NAME> <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as *...
/* * Copyright (C) 2010. See COPYRIGHT in top-level directory. */ #include <stdio.h> #include <stdlib.h> #include <armci.h> #include <armcix.h> #include <armci_internals.h> #include <debug.h> /** The ARMCI world group. This is accessed from outside via * ARMCI_Group_get_world. */ ARMCI_Group ARMCI_GROUP_WORL...
/* * iwmc3200top - Intel Wireless MultiCom 3200 Top Driver * drivers/misc/iwmc3200top/fw-download.c * * Copyright (C) 2009 Intel Corporation. All rights reserved. * * 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 publis...
/****************************************************************************** * Copyright (c) 2010-2011 Marvell International, Ltd. All Rights Reserved * * Marvell Confidential ******************************************************************************/ /** * * \file jpeg_decompress....
#include <linux/module.h> #include <linux/version.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/skbuff.h> #include <linux/if_ether.h> #include <linux/ethtool.h> #include "ra2882ethreg.h" #include "raether.h" #include "ra_mac.h" #incl...
/* * Copyright (C) 2019. Huawei Technologies Co.,Ltd.All rights reserved. * * Description: This file provides the implemenation for error module * * 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 ...
/* Title: Yagi Qbot Project Created 03/10/18 Build: 1.0 Official - arch register - custom command trigger - 0day exploiter - huawei exploiter udp - udp flood from org qbot tcp - tcp flood from org qbot std - std from kaiten irc bot http - blj's http flood kill/stop - kills all runni...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define max 9 // Tamanho total do vetor ( overflow + tabela). #define P 7 // Tamanho do vetor onde nao eh o overflow, ou seja, a tabela. // Nodes que poderao ficar dentro do vetor q representa a tabela typedef struct node { int key; char nome[35]; ...
/** * SPDX-License-Identifier: Apache-2.0 * Copyright (C) 2020-2021 Xilinx, Inc. All rights reserved. */ #include <stdio.h> #include <time.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <syslog.h> #include <dirent.h> #include <stdbool.h> #include "sk_types.h" //Use ...
#include <stdio.h> #include <time.h> #include <stdlib.h> #include "pico/stdlib.h" #include "hardware/gpio.h" #include "hardware/pio.h" #include "hardware/clocks.h" #include "hardware/watchdog.h" #include "ws2812.pio.h" #include "morse_code.h" #include <string.h> #define IS_RGBW true // Will use RGBW format #defi...
/* $OpenBSD: process.c,v 1.23 2016/03/16 15:41:10 krw Exp $ */ /* * Copyright (c) 1983 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. Redis...
/* * Copyright (c) 2013 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 * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT...
#include "ld.h" struct ExeImage { int vaddr_offset, header_size; Vector *objs; // vector<ObjectData *> }; typedef struct ObjectData ObjectData; struct ObjectData { char *data; int data_size, entire_size; char *shdr, *symtab, *strtab, *rela_text; int nshdr, nsymtab, nrela_text; }; int read_b...
/* <NAME> `gentilkiwi` http://blog.gentilkiwi.com <EMAIL> Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kull_m_sr98.h" BOOL sr98_test_device(HANDLE hFile) { BOOL status = FALSE; USHORT temoin = 'BB'; BYTE *out, szOut; if(sr98_send_receive(hFile, SR98_IOCTL_TEST_DEVICE, &temoin,...
/* libcoremeta - A library of useful C functions and ADT's Copyright (C) 2000-2006 <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...
#include <stdlib.h> #include "dberror.h" #include "expr.h" #include "btree_mgr.h" #include "tables.h" #include "test_helper.h" #define ASSERT_EQUALS_RID(_l,_r, message) \ do { \ ASSERT_TRUE((_l).page == (_r).page && (_l).slot == (_r).slot, message); \ } while(0) // test methods static void testInse...
/**************************************************************************** * * Copyright 2021 Samsung Electronics 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...
/****************************************************************************** * * Copyright(c) 2007 - 2018 Realtek Corporation. All rights reserved. * ******************************************************************************/ #include "example_media_framework_sd_detect.h" #define wifi_wait_time 500 ...
/* * Copyright (C) 2014 Linaro Ltd. <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/elf.h> #include <linux/kernel.h> #include <linux/module.h> #in...
#include "snapconfig.h" /* Code to manage the list of survey data files */ /* $Log: survfilr.c,v $ Revision 1.3 2004/04/22 02:34:48 ccrook Setting up to support linux compilation (x86 architecture) Revision 1.2 1998/06/15 02:26:26 ccrook Modified to handle long integer number of observations Re...
#define _GNU_SOURCE #include <pthread.h> #include <signal.h> #include <unistd.h> #include <fcntl.h> #include <assert.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <sys/shm.h> #include <sys/mman.h> #include <sys/ipc.h> #include <stdint.h> #include "../cacheutils.h" size_t star...
/*- * Copyright (c) 2014-2015 MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" /* * __page_refp -- * Return the page's index and slot for a reference. */ static inline void __page_refp(WT_...
/* * myproxy-cp * * Webserver program to change credential password stored on myproxy server */ #include "myproxy_common.h" /* all needed headers included here */ static char usage[] = \ "\n" "Syntax: myproxy-change-pass-phrase [-l username] [-k credname] ... \n" " myproxy-change-pass-phrase [-usage|-help]...
// // Simple unit tests for libc // // // dx libc headers // #include "ctype.h" #include "errno.h" #include "stdlib.h" #include "string.h" #include "time.h" // // System headers // #include <stdio.h> #include <math.h> // // Unit test counters // static unsigned tests_passed = 0, tests_failed = 0; // // Float...
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <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 Sof...
/*** ** Created by <NAME> on 2019-02-16. ***/ #include <pwm.h> #include <timers.h> #include <storage.h> #include "bsp/custom_board.h" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends.h" #include "nrfx_saadc.h" #include "nrfx_timer.h" #include "nrfx_rtc.h" #include "nrf_gpio.h" #includ...
/* ********************************************************************* * Broadcom Common Firmware Environment (CFE) * * Board device initialization File: c3_devs.c * * This is the "C" part of the board support package. The * routines to create and initialize the console, wire up ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "gprs_uart.h" #include "modem.h" enum { AT = 0, AT_CSQ, AT_CREG, AT_CMGF, AT_CMGS, AT_CSCA, }; typedef struct { uart_t *uart; char sca[16]; char sca_pdu[16]; } priv_info_t; #define AT_C...
/******************************************************************************* * arg_file: Implements the file command-line option * * This file is part of the argtable3 library. * * Copyright (C) 1998-2001,2003-2011,2013 <NAME> * <<EMAIL>> * All rights reserved. * * Redistribution and use in source and bina...
// This file contains default configuration settings for MicroPython. // You can override any of these options using mpconfigport.h file located // in a directory of your port. #include <mpconfigport.h> // Any options not explicitly set in mpconfigport.h will get default // values below. /***************************...
#include "blackjack.h" #include <stdio.h> void main(){ blackJack(); } void blackJack(){ //just do things on the stack for now //idk if malloc even works yet Table mainTable; Deck cardDeck; Player dealer, p1; mainTable.deck = &cardDeck; mainTable.players[0] = &dealer; mainTable.players[1] = &p1; pr...
#include "esl_msa.h" /* fastSP.c -- function to integrate FastSP output * * ER, Wed Feb 26 10:15:35 EST 2014 [Janelia] * SVN $Id:$ */ #include "p7_config.h" #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #include <math.h> #include <float.h> #include "ease...
/* * Copyright (C) 1996-1998 <NAME> * Email: <EMAIL> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See the f...
#include <string.h> #include <stdlib.h> #include "sdkconfig.h" #include "MQTTClient.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_wifi.h" #include "esp_event_loop.h" #include "esp_system.h" #include "esp_task_wdt.h" #include "esp_attr.h" ...
/* ISC license. */ #include <stdint.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <sys/uio.h> #include <sys/stat.h> #include <errno.h> #include <time.h> #include <utmpx.h> #include <skalibs/uint32.h> #include <skalibs/uint64.h> #include <skalibs/types.h> #include <skalibs/allreadwrite.h> #in...
#include "isr.h" isr_t interrupt_handlers[256]; /* Can't do this with a loop because we need the address * of the function names */ void isr_install() { set_idt_gate(0, (uint64_t)isr0, 0x8F); set_idt_gate(1, (uint64_t)isr1, 0x8F); set_idt_gate(2, (uint64_t)isr2, 0x8F); set_idt_gate(3, (uint64_t)isr3, 0x8F); ...
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // 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 app...
#include <stdio.h> #include <string.h> #include <windows.h> #include "FileIO.h" #include "Struct.h" #include "iniparser.h" #include "inimanager.h" #include "version.h" #define DICT_NAME "NXPatcher.ini" #define KEY_NOT_FOUND_STR "0xBAADF00D" #define BEGIN_TOKEN "{" #define END_TOKEN "}" dictionary* ConfigINI; char* ...
/* * proxy.c - ICS Web proxy * * id:517030910169 * name: yuanzhuo */ #include "csapp.h" #define GIANTLINE 16384 #define MAXENTRY 256 #define MAXHEADERS 10 /* * Type definition */ /* * reqheaderinfo - http request basic info */ struct reqheaderinfo { char method[MAXENTRY]; char server_ip[MAXENTRY]...
/* * ============================================================================ * 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 License, or (at your option) any lat...
/* * Copyright (C) 2020 Southern Storm Software, Pty Ltd. * * 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, ...
/* * Copyright © 2006-2009 <NAME> * Copyright © 2012 <NAME> * Copyright © 2014-2015 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including witho...
/* * Copyright (c) 2008-2009 Atheros Communications 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 * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
#include "vector.h" #include "vector.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h>/* timeval, gettimeofday() */ /********************************************************************/ /* DO NOT ALTER ANY OF THE THE DRIVER CODE */ /*********...
#pragma once #include <malloc.h> #include <assert.h> #include <string.h> static const size_t DBJ_NPOS = (size_t)-1; static const size_t DBJ_MAX_STRING_LENGTH = 65536; /* Concept 1: string is two pointers, front and back char * str = "ABC" ; char * front = str ; char * back = str + stlen(str) ; Effectively this is ...
/* Copyright (c) 2013, Dust Networks. All rights reserved. */ #include "dn_common.h" #include "loc_task.h" #include "dnm_local.h" #include "dn_api_param.h" //=========================== defines ========================================= #define DFLT_EVENTMASK 0xFFFFFFFF //=========================== variables...
/****************************************************************************** * Copyright 2020-2021 The Firmament Authors. 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 Lic...
//Copyright <>< <NAME> //This file may be licensed under the MIT/x11 or NewBSD License. //Based on guide here: https://developers.google.com/youtube/v3/guides/auth/client-side-web-apps //Geared around offline mode: https://developers.google.com/identity/protocols/OAuth2WebServer#offline //TODO: also disable tokens......
/* struct options. Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. This file is part of GNU Wget. GNU Wget is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License a...
/* * Copyright (c) <NAME>. All rights reserved. * See LICENSE file for details. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <string.h> #include <stdint.h> #include <mpi.h> #include "pdirs.h" #include "pvtp.h" static const int fnstrmax = 4095; void writepvtp(char *n...
/* Lua module to provide some standard Unix functions */ #include <unistd.h> #include <stdlib.h> #include <fcntl.h> #include <dirent.h> #include <sys/time.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/utsname.h> #include <string.h> #include <math.h> #include "lua.h" #include "luali...
#include <simple2d.h> #define FAIL false #define PASS true int tests = 0; int failures = 0; void start_test_suite() { puts("\033[1;39mStarting test suite...\033[1;39m\n"); } void start_test(char *test) { printf("\033[1;34m==>\033[1;39m Running test\033[0m %s\n", test); tests++; } void end_test(bool status) ...
#include "quiet-lwip/driver.h" void quiet_lwip_init() { static bool has_lwip_init = false; if (!has_lwip_init) { tcpip_init(NULL, NULL); has_lwip_init = true; } } // lwip -> quiet: convert tx data frame to audio samples static err_t quiet_lwip_encode_frame(struct netif *netif, struct pbuf...
/* * (C) COPYRIGHT 2011 CRZ * * File Name : remocon.c * * History * * when who what, where, why *-------------------------------------------------------------- * 04/04/2012 sikim Initial release */ /* includes */ #include "hw_config.h" /* Defines */ //#define IR_RX_TIME_VAL_START (32...
/***************************************************************************** string.c -- dds string library Copyright(C) 1997 - 2000 by Deyu Deyu Software 2001.02.04 StrTokFile : 該当 _tcs がないときは NULL を返す ( szDst == NULL時 ) 2001.03.29 StrGetParam : szDst == NULL の時はポインタだけ返す 2002.02.04 WIN32 固有部分を切り離し可能にした...
/* =========================================================================== * uz80as, an assembler for the Zilog Z80 and several other microprocessors. * * Intel 4004. * Intel 4040. * =========================================================================== */ /* Intel 4004. Max. memory 4K (12 bit addresses...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "functions.h" #include "data.h" #include "data_treatment.h" #include "lists.h" void TreatmentDataFilter(int* aux_df, int starting_yearmonth[2], int monthspan[2]){ //função que trata a filtragem de dados int i = 0; char buffer[BUFFER_SIZE] =...
#include <cgx.h> #include <assert.h> extern Scale scale[1]; extern Points *point; /**/ typedef struct {double x, y, z, w;} wpoint; typedef struct { int n; int degree; wpoint *polygon; double *knots; } nurbs; wpoint *pointAt(const nurbs *curve, double u) { static wpoint p; wpoint old,...
#include "vl53l0x_cali.h" ////////////////////////////////////////////////////////////////////////////////// //本程序只供学习使用,未经作者许可,不得用于其它任何用途 //ALIENTEK 探索者STM32F407开发板 //VL53L0X-校准模式 驱动代码 //正点原子@ALIENTEK //技术论坛:www.openedv.com //创建日期:2017/7/1 //版本:V1.0 //版权所有,盗版必究。 //Copyright(C) 广州市星翼电子科技有限公司 2009-2019 //All righ...
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "replay.h" #include "rw_common.h" #include "player.h" #include "rwops/rwops_zl...
#include <zconf.h> #include <zlib.h> #include "utils.h" #include "linked_list.h" #include "imgs_parser.h" int __ng_parser_bmp_to_texture(char* bmp_content, Uint8 channels, SDL_Renderer* renderer, SDL_Texture** texture) { Uint8 alignment = 4; Uint8* pixelsHead = bmp_content + (*(bmp_content + 10)); Uint32 width, ...
/* 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...
/* File: utf_test15.c * * This test makes ES api calls. * * Output can be directed either to screen or to file. * To direct output to screen, * comment in '#define UTF_USE_STDOUT' statement in the * utf_custom.h file. * * To direct output to file, * comment out '#define UTF_USE_STDOUT' stat...
/** * MIT License * * Copyright (c) 2020 <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 rights * to use, copy...
#include <RASLib/inc/adc.h> #include <RASLib/inc/common.h> #include <RASLib//inc/gpio.h> #include <RASLib/inc/linesensor.h> #include <RASLib/inc/motor.h> #include <RASLib/inc/time.h> static tBoolean initialized = false; static tMotor *mLeft; static tMotor *mRight; static tADC *adc[3]; static tADC *snrLeft; static t...
/* $NetBSD: m38813c.c,v 1.6 2002/01/29 18:53:10 uch Exp $ */ /*- * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by UCHIYAMA Yasushi. * * Redistribution and use in source and binary forms, with or without...
#include "firmware/app/primitives/accurate_shoot_primitive.h" #include <math.h> #include <stdbool.h> #include <stdio.h> #include "firmware/app/control/bangbang.h" #include "firmware/app/control/control.h" #include "firmware/shared/physics.h" #include "firmware/shared/util.h" // these are set to decouple the 3 axis f...
/* Copyright © 2005-2017 <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 rights * to use, copy, modify, merge, pu...
// SPDX-License-Identifier: GPL-2.0 /* * arm_spe_decoder.c: ARM SPE support */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <linux/bitops.h> #include <linux/compiler.h> #include <linux...
#include <stdlib.h> #include <goocanvas.h> #include "goo_laser_data.h" #include "gtk_viewer.h" static gboolean on_rect_button_press (GooCanvasItem *view, GooCanvasItem *target, GdkEventButton *event, gpointer data); static gboolean on_delete_event (GtkWidget *window, ...
/** * System Starter main * <NAME> | <EMAIL> * $Apple$ ** * Copyright (c) 1999-2002 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights * Reserved. This file contains Original Code and/or Modifications of * Original Code...
/* Copyright (C) 2012 Modelon AB This program is free software: you can redistribute it and/or modify it under the terms of the BSD style license. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL...
//--------------------------------------------------------------------------------------------- // // Copyright (c) 2016, fmad engineering llc // // fast pcap time order merger // //--------------------------------------------------------------------------------------------- #include <stdio.h> #include <stdint.h> #i...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include "laurelang.h" size_t laure_string_strlen(const char *s) { if (!s) return 0; size_t len = 0; while (*s) { unsigned char c = *(const unsigned char *)s++; if ((c < 0x80) || c > 0xBF) len++; } return len; } ...
#include<stdio.h> #include<string.h> struct students { int rollno; char name[20]; char father_name[20]; char mother_name[20]; int Class; int semester; char branch [10]; struct Address { int house_no; char street_name[20]; char city[20]; char state[20]; ch...
#include "nw.h" #include <string.h> #define MATCH_SCORE 1 #define MISMATCH_SCORE -1 #define GAP_SCORE -1 #define ALIGN '\\' #define SKIPA '^' #define SKIPB '<' #define MAX(A,B) ( ((A)>(B))?(A):(B) ) #define JOBS_PER_BATCH 256 #define UNROLL_FACTOR 64 #define JOBS_PER_PE ((JOBS_PER_BATCH)/(UNROLL_FACTOR)) void nee...
/***********************license start*********************************** * Copyright (c) 2003-2017 Cavium Inc. (<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: * * * Redistributio...