text
stringlengths
3.08k
10.5k
#pragma noroot #include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> #include <types.h> #include <control.h> #include <lineedit.h> #include <locator.h> #include <memory.h> #include <menu.h> #include <misctool.h> #include <orca.h> #include <qdaux.h> #include <quickdraw.h> #include <resources.h>...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "Vars.h" struct Semaphore Forks[5]; struct Semaphore Doorman; // Previous functions defined in Functions.c extern struct PCB *GetNextProcess(struct PCB **Head); extern...
/* ** Seniriu ** <NAME> & <NAME> (<EMAIL>) ** ** This work is licensed under a Attribution-NonCommercial 4.0 International License ** More info at: https://creativecommons.org/licenses/by-nc/4.0/legalcode */ // Includes #include "bg.h" // Variables jo_img_8bits bg_img; // BG Image3 data jo_palette bg_pal; // BG P...
/* * 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 <string.h> # include <stdlib.h> #include <time.h> #include "forca.h" //Variáveis Globais char palavraSecreta[TAMANHO_PALAVRA]; char chutes[26]; int chutesDados = 0; int letraExiste(char letra) { for(int j = 0; j < strlen(palavraSecreta); j++) { if(letra == palavraSecreta[j])...
#include <stdlib.h> #include <stdio.h> #include <time.h> #include <inttypes.h> #include "stats.h" #include "api.h" char* format(int, uint64_t); /* Objects allocated. Bytes allocated. Objects copied. Bytes copied. */ static uint64_t _lhc_stats_copied = 0; uint64_t _lhc_stats_allocated = 0; static int _lhc_stats_coll...
#pragma ident "$Id: print.c,v 1.5 2015/11/04 22:01:02 dechavez Exp $" /*====================================================================== * * Print decoded ADDOSS frames * *====================================================================*/ #include "addoss.h" #include "util.h" void addossPrintOSG_STATUS(...
/* * 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 * following disclaimer. * * 2. Redistrib...
/* Copyright (C) 2018 <NAME> <<EMAIL>> * Released under the Mozilla Public License version 2.0 */ #include <ctype.h> // isspace #include <inttypes.h> #include <math.h> // ldexp /* TODO static assertion that `float` corresponds to the 32-bit * (single precision) IEEE-754 binary format. */ /**! Given a mantissa an...
/* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define USE_BUILTIN_FRAME_ADDRESS 1 #define USE_WINSOCK2 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE...
/* * Copyright 2011 Google Inc. 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 required by applica...
/** * Test suite for homeishome.so. The compiled binary accepts no arguments. Log * messages for failing tests are written to standard error, and messages for * other tests are written to standard output. * * Exit Statuses: * - 0: All tests passed. * - 1: An error occurred during initialization. * - 2: One or m...
/***************************************************************************** * * \file * * \brief ACIFA example driver for AVR UC3. * * This file provides an example for the ACIFA on AVR UC3 devices. * * Copyright (c) 2009-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redis...
/* * Copyright (c) 2021-2022 Antmicro * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <sys/socket.h> #include <errno.h> #include <netinet/in.h> #define HOST_ADDR 0xc0000202 // 192.0.2.2 #define ARTY_ADDR 0xc0000201 // 192.0.2.1 #define RECV_LEN 512 uint8_t buff[RECV_LEN]; uint8_t num_msgs_...
// // Created by andrewmhdb on 15/03/2022. // #include <malloc.h> #include <string.h> #include "huffman.h" struct huffman_data *applyHuffmanOnFile(char *file_path) { /* * Call every function to compute the huffman codes */ // Generating occurrences list struct char_list *char_list = generateOcc...
/* * Copyright (c) 1993 <NAME> * Copyright (c) 1988, 1990 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 mus...
#define _XOPEN_SOURCE 500 #include <sys/inotify.h> #include <dirent.h> #include <limits.h> #include <unistd.h> #include <ctype.h> #include <errno.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #define DEFAULT_DIRECTORY "." #define INOTIFY_BUFFER_SIZE (sizeof(struct inotify_event) + PATH_MAX + 1) #def...
#include "assets/material.h" void material_entry_delete(material_entry* me) { shader_program_delete(me->program); for(int i = 0; i < me->num_items; i++) { free(me->names[i]); } free(me->names); free(me->types); free(me->items); free(me); } material_item material_entry_item(material_entr...
#include <stdint.h> #define MP_SSIZE_MAX (0x7fffffff) // options to control how MicroPython is built // You can disable the built-in MicroPython compiler by setting the following // config option to 0. If you do this then you won't get a REPL prompt, but you // will still be able to execute pre-compiled scripts, co...
/** dude, is my code constant time? * * This file measures the execution time of a given function many times with * different inputs and performs a Welch's t-test to determine if the function * runs in constant time or not. This is essentially leakage detection, and * not a timing attack. * * Notes: * * - the...
/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that c...
/* devSkeletonGpib.c */ /* $Id: devSkeletonGpib.c,v 1.6 2004-02-16 15:02:13 mrk Exp $ */ /*********************************************************************** * Copyright (c) 2002 The University of Chicago,as Operator of Argonne * National Laboratory,and the Regents of the University of * California,as Operator of L...
//[-1-]Attribution-Share Alike 3.0 License, copyright (c) 2010 <NAME>, modified @alpaca-tc //[-2-] Copyright (c) 2010-2013 iMatix Corporation and Contributors //[-3-] Lets us build this source without creating a library #include "kvmsg.c" //[-6-] zloop reactor handlers static int s_snapshots (zloop_t *loop, zmq_polli...
// Copyright 2019-2020, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file * @brief Swapchain entrypoints for the OpenXR state tracker. * @author <NAME> <<EMAIL>> * @ingroup oxr_api */ #include "xrt/xrt_compiler.h" #include "util/u_debug.h" #include "util/u_trace_marker.h" #include "oxr_objects.h"...
/*- * Copyright (c) 2014 ENEA Software AB * Copyright (c) 2014 Nokia * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "ofpi_log.h" #include "ofpi_cli.h" #include "ofpi_avl.h" #include "ofpi_rt_lookup.h" #include "ofpi_stat.h" #include "ofpi_util...
/* Copyright (c) 2007-2014. The YARA Authors. 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 and the fo...
/* Created by RJudd */ /* SPAWARSYSCEN D881 */ /********************************************************************** // For TASP VSIPL Documentation and Code neither the United States / // Government, the United States Navy, nor any of their employees, / // makes any warranty, express or implied, including the ...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2016 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyr...
/* $Id: code.c,v 1.42 2012/04/22 21:07:40 plunky Exp $ */ /* * Copyright (c) 2003 <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 mus...
/* Copyright 2018, UCAR/Unidata and OPeNDAP, Inc. See the COPYRIGHT file for more information. */ #include "config.h" #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif #ifdef HAVE_STDINT_H #include <stdint.h> #endif #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif ...
/* $Id: rooms.c,v 2.0 2005/07/05 16:45:44 ksb Exp $ */ /* $Revision: 2.0 $ */ /* this isnt done as a module because there will be too much interaction ** from other modules. -ksb */ /* we need to cope with the talker having no rooms, as some tit might ** remove them all so it's not enough to just populate the db wit...
#pragma once #include "NVEncodeDataTypes.h" struct NVEncoderParams { char configFile[256]; char inputFile[256]; char outputFile[256]; int measure_psnr; int measure_fps; int force_device; int iSurfaceFormat; int iPictureType; int nDeviceMemPitch; int iCodecType; // NVVE_CODEC_TY...
/* * This file is part of the OpenMV project. * Copyright (c) 2013/2014 <NAME> <<EMAIL>> * This work is licensed under the MIT license, see the file LICENSE for details. * * HAL MSP. * */ #include STM32_HAL_H #include "omv_boardconfig.h" /* GPIO struct */ typedef struct { GPIO_TypeDef *port; uint16_t pi...
// SPDX-License-Identifier: MPL-2.0 // Copyright (c) <NAME> <<EMAIL>> #pragma once #include <GL/gl.h> #include <GL/glext.h> #include <stdbool.h> #include <string.h> #include "backend/backend.h" #include "log.h" #include "region.h" #define CASESTRRET(s) ...
/* * BlueALSA - at.c * Copyright (c) 2016-2017 <NAME> * 2017 <NAME> * * This file is a part of bluez-alsa. * * This project is licensed under the terms of the MIT license. * */ #include "at.h" #include <ctype.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include "shared/log.h...
/* ======================================== * * Copyright YOUR COMPANY, THE YEAR * All Rights Reserved * UNPUBLISHED, LICENSED SOFTWARE. * * CONFIDENTIAL AND PROPRIETARY INFORMATION * WHICH IS THE PROPERTY OF your company. * * ======================================== */ #include <ctype.h> #include <stdbool.h...
/* * Copyright (c) 2013, Institute for Pervasive Computing, ETH Zurich * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate how to implement Microwire protocol by PSIO. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved. *******************...
/* * ***************************************************************************** * * Copyright (c) 2018-2019 <NAME> and contributors. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: *...
/******************************************************************************************************************************************** Purpose:Take the values of x and y=tan(x), for x = 1, 1.1, 1.2 and 1.3 and use these values to interpolate and find the value for y at x=1.15 and x=1.25 using linear interpolati...
#include "lexer.h" #include <au/log.h> #include <au/string.h> #include <stdbool.h> #include <string.h> #include <ctype.h> static void lexer_error(wheel_lexer_t* lexer, char c, const char* expect) { switch (c) { case 0: lexer->peek.type = WHEEL_TOKEN_EOF; break; case '\n': lexer->peek.type = WHEEL_TOKEN_N...
/* * Copyright 2010 Extreme Engineering Solutions, Inc. * Copyright 2007-2008 Freescale Semiconductor, Inc. * * 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 a...
/* * @(#)hprof_frame.c 1.21 05/11/17 * * Copyright (c) 2006 Sun Microsystems, 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: * * -Redistribution of source code must retain the above...
/* simple MIDI monitor program, based on portmidi/pm_test/midithread.c -JGG */ #include "stdio.h" #include "stdlib.h" #include "string.h" #include "assert.h" #include "portmidi.h" #include "pmutil.h" #include "porttime.h" /* if INPUT_BUFFER_SIZE is 0, PortMidi uses a default value */ #define INPUT_BUFFER_SIZE 0 #de...
#include "mpi_pvt.h" #include <stdlib.h> #define ASC_TO_RAW_CHAR(c) \ (('0' <= (c) && (c) <= '9') ? ((c) - '0') : \ ('a' <= (c) && (c) <= 'z') ? (((c) - 'a') + 10) : \ ('A' <= (c) && (c) <= 'Z') ? (((c) - 'A') + 10) : 0) static int load_str_hex(cry_mpi *a, const char *s) { int res; size_t i = ...
#define INIT 0xFFFF0000 #define ENBL 1 extern "C" { u32 __Bios(u8 Item, u32 Var); } enum { SYSINFO, // ???????? Var: PRDT_SN ??????? Rtn: (u16)??????? // Var: PRODUCT ?????? Rtn: ????????? // Var: PRDTNUM ??????? Rtn: (u16)??????...
// // hashmap.c // hashmap // // Created by XuNing on 2021/10/31. // #include "hashmap.h" #include <errno.h> #include <pthread.h> #include <stdlib.h> #include <string.h> typedef struct hashmap_entry hashmap_entry; struct hashmap_entry { void *key; void *value; int hash; hashmap_entry *next; }; struct has...
/*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" static tilemap *bg_tilemap; /* This is strange; it's unlikely that the ...
/* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */ /* * Copyright (C) 2012 <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 restrict...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
// Copyright (c) 2020-2021 ByteDance, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, p...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "integrator.h" int NBODY; double mass=1; double eps=1; double r0=1; double force(double r) { return 24*eps*(2*pow(r0/r,12)-pow(r0/r,6))/r; } void F(double* y, double t, double* res) { for(int i=0; i<2*NBODY; ++i) res[i] = y[2*NBODY+i]; for(i...
/* LED Light Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <string.h> #i...
#include "util/u_format.h" #include "nvfx_context.h" #include "nvfx_tex.h" #include "nvfx_resource.h" void nv30_sampler_state_init(struct pipe_context *pipe, struct nvfx_sampler_state *ps, const struct pipe_sampler_state *cso) { float limit; if (cso->max_anisotropy >= 2) { if (cso->max_anisotropy >= 8...
/* Copyright (C) 2000, 2001 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 published by the Free Software Foundation; either version 2.1 of the...
#define __cplusplus #define UNICODE #define _M_IX86 // take the newest MS stuff #define _MSC_VER 1600 #define _MSC_FULL_VER 160000000 // remove annotations #define __SPECSTRINGS_STRICT_LEVEL 1 // 0 for Win SDK 7.1? // Win SDK 6.0A specific? #define __allowed(x) #define __deref_opt_out_z #define __...
/**************************************************************************** * * Copyright (c) 2017, <NAME> (<EMAIL>) * * This file is part of the FreeRTOS Add-ons project. * * Source Code: * https://github.com/michaelbecker/freertos-addons * * Project Page: * http://michaelbecker.github.io/freertos-ad...
/* * Copyright 2012 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 without limitation * the rights to use, copy, modify, merge, publish, d...
/* * (C) Copyright 2004 * <NAME>, IEMC. SHU, <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 * published by the Free Software Foundation; either ...
/* (5th of may 2007) */ /* testSkizzo() */ /* Rip_Skizzo() */ /* Depack_Skizzo() */ #include "globals.h" #include "extern.h" int16_t testSkizzo ( void ) { /* test #1 */ PW_Start_Address = PW_i-24; if ((PW_i + 38) > PW_in_size) { /*printf ("[1] PW_Start_Address : %ld\n", PW_Start_Addres...
// Copyright 2018 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 applic...
#include <driver/gpio.h> #include <driver/spi_master.h> #include <esp_log.h> #include "esp_wifi.h" #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <stdio.h> #include <string.h> #include <u8g2.h> #include <time.h> #include <sys/time.h> #include "sdkconfig.h" #include "u8g2_esp32_hal.h" #define U8G2_1...
/******************************************************************************* * @Title: sched.c * * @Author: <NAME> * * @Date: Thu, 10-Sep-15 01:23AM * * @Project: Multithreading Rasperry Pi * * @Purpose: This module creates the main scheduler for all required tasks. * * *********************************************...
/* Shared library add-on to iptables to add IP range matching support. */ #include <stdio.h> #include <netdb.h> #include <string.h> #include <stdlib.h> #include <getopt.h> #include <arpa/inet.h> #include <ip6tables.h> #include <linux/netfilter.h> #include <linux/netfilter_ipv6/ip6_tables.h> #include <linux/netfilter/x...
/* Copyright JS Foundation and other contributors, http://js.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 r...
/************************************************************************************************** MiniSat -- Copyright (c) 2005, <NAME> http://www.cs.chalmers.se/Cs/Research/FormalMethods/MiniSat/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentati...
#include "bintree.h" #include "string_worker.h" #include "tree_printer.h" #define GREEN "\x1b[32m" #define BLUE "\x1b[34m" #define WHITE "\x1b[37m" #define RED "\x1b[31m" #define YELLOW "\x1b[33m" root *tree_root; node *cur_node; void init_root() { tree_root = cur_node = create_root(0); } char **parse_command_on...
/*----------------------------------------------------------------------------------------------------------*/ /* */ /* Copyright (C) 2018 Brite Semiconductor Co., Ltd. All rights reserved. ...
#include "filetypes.h" // msx tape signal timings // @ baud 1200 bps // 1: 417 mks pulse x 2 // 0: 208 mks pulse x 2 // @ baud 2400 bps // 1: 208 mks pulse x 2 // 0: 104 mks pulse x 2 #define MSX_CAS_0 417 #define MSX_CAS_1 208 // signature of each block (align by 8 bytes) static const unsigned char cas_sgn[8] = {0x...
/* * Copyright (C) 2008 Intel Corporation * * Author: <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation. * * This library is distributed in the hope ...
/* * Copyright (c) 2015 * <NAME> <<EMAIL>> * Distributed under MIT license */ #include "../../include/init.h" #define ADC_CURRLIMIT_NO_gc (0x00 << 5) // ============================= // ADCA initialization // note - most of this code is generated with CodeVision void adca_init(void) { // ADCA is enabled // R...
/* Copyright (C) 2009-2019 Parallel Realities This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
/***************** STRUCT DEF****************************/ // Struct for variable struct symbol { char *name; int nodetype; struct value *v; struct listexp *l; struct peripherical *p; struct ast *func; struct symlist *syms; struct ast *returnValue; }; struct peripherical{ int nodety...
/* file.c - file I/O functions */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2002,2006,2007,2009 Free Software Foundation, Inc. * * GRUB 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,...
/** * Behaviors for bhvPyramidTop, bhvPyramidTopFragment, and * bhvPyramidPillarTouchDetector. * * bhvPyramidTop controls Shifting Sand Land's pyramid's top piece, which * rotates and explodes when Mario stands on all four pillars. * bhvPyramidTopFragment controls the shards that the pyramid's top emits when...
// // main.c // MasteringAlgorithms // Description: Illustrates sorting algorithms (see Chapter 12). // // Created by YourtionGuo on 10/05/2017. // Copyright © 2017 Yourtion. All rights reserved. // #include <stdio.h> #include <string.h> #include "sort.h" /// 定义字符串长度 #define STRSIZ 6 static void prin...
/* Wrapper for JSON-C functions * * Copyright (C) 2018, <NAME> <<EMAIL>> * * License: see LICENSE file in root directory * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOS...
#include <curl/curl.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "mcurl.h" #include "log.h" #include "utility.h" static CURL* curl_init_download_ts_handle(http_event_t *hev, ts_list_t *tslist, CURL *shandle); size_t curl_write_handler(void *content, size_t size, size_t nmemb, void *user...
/*- * Copyright (c) 2003 <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 ...
/* Usage: test-escape_windows_command_arg.exe This is a test program for the escape_windows_command_arg function from nbase_str.c. Its code is strictly Windows-specific. Basically, it performs escape_windows_command_arg on arrays of strings merging its results with spaces and tests if an attempt to decode them with Co...
/* * Copyright (c) 2004 MontaVista Software, Inc. * Copyright (c) 2006-2009 Red Hat, Inc. * * All rights reserved. * * Author: <NAME> (<EMAIL>) * * This software licensed under BSD license, the text of which follows: * * Redistribution and use in source and binary forms, with or without * modification, are p...
#include "../include/signals.h" #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <asm-generic/errno-base.h> #include <asm-generic/errno.h> #include <sys/types.h> #include <sys/wait.h> #include <time.h> #include <fcntl.h> #include <unistd.h> ...
/* K U R T . C * BRL-CAD * * Copyright (c) 1986-2019 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as pu...
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */ #include "pubnub_internal.h" #include "core/pubnub_assert.h" #include "lib/miniz/miniz_tinfl.h" #include "core/pubnub_log.h" #define GZIP_HEADER_LENGTH_BYTES 10 #define GZIP_FOOTER_LENGTH_BYTES 8 static enum pubnub_res inflate_total_to_context_buffer(pub...
/* pe2pl.c - presentation element to presentation list */ #ifndef lint static char *rcsid = "$Header: /xtel/isode/isode/psap/RCS/pe2pl.c,v 9.0 1992/06/16 12:25:44 isode Rel $"; #endif /* * $Header: /xtel/isode/isode/psap/RCS/pe2pl.c,v 9.0 1992/06/16 12:25:44 isode Rel $ * * * $Log: pe2pl.c,v $ * Revision 9.0 1...
/* * Copyright (c) 2012, 2013, <NAME> aka Tectu <<EMAIL>> * Copyright (c) 2012, 2013, <NAME> aka inmarket * * 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...
/* Copyright 2015, 2016 IoT.bzh author: <NAME> <<EMAIL>> 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...
/*******************************************************************************/ /* Copyright (C) 1994 - 2016, Performance Dynamics Company */ /* */ /* This software is licensed as described in the file COPYING, which ...
/* * Copyright (C) 2011 <NAME> <<EMAIL> at <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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE...
#include "scriptexec.h" #define AbducoHost_IFACE \ vfunc(const char *, name, void) \ vfuncDefault(const int, port, AbducoHost ah) \ vfuncDefault(bool, ok, AbducoHost ah) \ vfuncDefault(void, connect, AbducoHost ah) \ vfuncDefault(const char *, sessions, AbducoHost ...
/* Copyright (c) 2020-2021, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
/* * CGlib * * A Low-Level GPU Graphics and Utilities API * * Copyright (C) 2013 Intel 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, includin...
/* * LOG-PARSE.C --Unit tests for syslog parsing. * * Contents: * logrec_cmp_() --Compare two log records for equality. * logrec_sprint_() --Print a log record. * main() --Run some unit tests. * * */ #include <string.h> #include <time.h> #include <test.h> #include <xtd.h> #include <log-parse.h> ...
/* $XConsortium: HVCMxVs.c,v 1.7 93/09/07 21:31:03 rws Exp $" */ /* * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc. * All Rights Reserved * * This file is a component of an X Window System-specific implementation * of Xcms based on the TekColor Color Management System. TekColor is a...
/**Fie n obiecte care au urmatoarele caracteristici: greutate, valoare. Aceste obiecte vrem sa le transportam cu un rucsac pentru a le comercializa. Pentru fiecare obiect se cunosc: - gi - greutatea obiectului - pi - valoarea unui obiect Se mai cunoaste: - gmax - greutatea maxima admisa pentru rucsac. Alegeti ...
#include <hardware/i2c.h> #include <pico/stdlib.h> #include <string.h> #include <ssd1306.h> #include "ssd1306_font.h" #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 #define MAX_LINES ((int) (SCREEN_HEIGHT / (FONT_HEIGHT + 1))) #define MAX_CHARS ((int) (SCREEN_WIDTH / (FONT_WIDTH + 1))) static uint8_t startup_cmds[...
/* Part of the Raspberry-Pi Bare Metal Tutorials https://www.valvers.com/rpi/bare-metal/ Copyright (c) 2013-2018, <NAME> This software is licensed under the MIT License. Please see the LICENSE file included with this software. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #includ...
/* * mod_ip_frag.c * * Copyright (c) 2001 <NAME> <<EMAIL>> * * $Id: mod_ip_frag.c,v 1.18 2002/04/11 16:37:42 dugsong Exp $ */ #include "config.h" #include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "mod.h" #include "pkt.h" #include "randutil.h" #ifndef MAX #define MAX(a,b) (((...
/** * \file * * \brief AT25DFx SerialFlash driver quick start * * Copyright (C) 2013-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: ...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...