text
stringlengths
3.08k
10.5k
#include<stdio.h> #include<stdlib.h> //comentado por causa do compilador do MacBook #include<string.h> //#define INT_DECIMAL_STRING_SIZE(int_type) ((CHAR_BIT*sizeof(int_type)-1)*10/33+3) struct data{ int dia, mes, ano; //estrutura data }; typedef struct data Data; //sinonimo void imprime_data(Data d){ prin...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee a...
/* * 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. * * Copyright (C) <NAME> (<EMAIL>) * Copyright (C) <NAME> (<EM...
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
/* Copyright 2019 <NAME> * This file is part of Stratify OS. * * Stratify OS 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 later version. * ...
/* main.c - Application main entry point */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <string.h> #include <aos/aos.h> #include <aos/kernel.h> #include <misc/printk.h> #include <bluetooth/bluetooth.h> #include <bluetooth/mesh.h> #define CID_...
#include <assert.h> #include <anjay/anjay.h> #include <anjay/attr_storage.h> #include <anjay/security.h> #include <anjay/server.h> #include <avsystem/commons/avs_log.h> typedef struct test_instance { const char *label; int32_t value; } test_instance_t; typedef struct test_object { // handlers const ...
/*8. Design, Develop and Implement a menu driven Program in C for the following operations on Doubly Linked List (DLL) of Employee Data with the fields: SSN, Name, Dept, Designation, Sal, PhNo a. Create a DLL of N Employees Data by using end insertion. b. Display the status of DLL and count the number of nodes in it c....
/*- * Copyright (c) 2012, 2013 The FreeBSD Foundation * All rights reserved. * * This software was developed by <NAME> under sponsorship * from the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * a...
/* * 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 terms found in...
/* * Copyright (C) 2011 * <NAME>, DENX Software Engineering, <EMAIL>. * * Copyright (C) 2009 TechNexion Ltd. * * 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 Licens...
/**************************************************************************** * * Copyright 2017 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...
// Framework #include "unity.h" // module being tested #include "utils/db.h" #include "utils/rhht.h" #include "utils/utils.h" #include "primitives/ari.h" // Macros to appese the compiler #define INT2VOIDP(i) (void*)(uintptr_t)(i) #define VOIDP2INT(i) (uintptr_t)(void*)(i) #if AMP_VERSION < 7 #define TEST_ARI_1 "0xa4...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include <mach/mach.h> #include <mach/mach_vm.h> #define AT_SYSINFO_EHDR 33 #if TARGET_64BIT #define TARGET_WOR...
/*- * Copyright (c) 2004 <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 a...
/***************************************************************************** Copyright(c) 2012 FCI Inc. All Rights Reserved File name : fci_tun.c Description : tuner control driver *******************************************************************************/ #include "fci_types.h" #include "fci_oal.h" #inclu...
/* @(#)getrpcent.c 2.2 88/07/29 4.0 RPCSRC */ #if !defined(lint) && defined(SCCSIDS) static char sccsid[] = "@(#)getrpcent.c 1.9 87/08/11 Copyr 1984 Sun Micro"; #endif /* * Copyright (c) 2010, Oracle America, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without *...
/* Author: Fahad (QuantumCore) fhdawn.c (c) 2020 Created: 2020-08-15T15:27:04.427Z Modified: - */ /* Have a good time reading the source. You're an amazing person. If you decide to copy, Don't forget to give me credit. */ #include "fhdawn.h" void TimeStamp(char buffer[100]) { time_t t = time(0); struct tm*...
/* $Id: teclastuff.c,v 1.10 2008/04/17 21:09:40 strauman Exp $ */ /* Support for tecla features (such as word completion etc.) */ /* LICENSING INFORMATION: note that the licensing terms for * using libtecla may be different from the SLAC license * which applies to this file */ /* SLAC Software Notices, Set 4 OTT....
/***************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___...
/*---------------------------------------------------------------- // // // sprintf.c // // // // This file is part of the Amber project ...
#include "game.h" #include "game-data-parser.h" extern GtkWidget *window; extern GtkWidget *lblLevelName; extern GtkWidget *btnNum1; extern GtkWidget *btnNum2; extern GtkWidget *btnNum3; extern GtkWidget *btnNum4; extern GtkWidget *btnPlus; extern GtkWidget *btnMinus; extern GtkWidget *btnMultiple; extern GtkWidget *b...
#include <unistd.h> #include <string.h> #include <pngdec/pngdec.h> #include <stdio.h> #include "codes.h" #include "menu.h" #include "menu_options.h" #include <tiny3d.h> #include <libfont.h> void Draw_OptionsMenu_Ani() { int c = 0, w = 0, h = 0; char ARTEMIS_OPTION_INC_TEMP[24]; int div = 12, max = MEN...
#include <string.h> #include <stdlib.h> #include "lexer.h" #include "identifiers_record.h" #include "error.h" #include "keywords.h" void mk_lexer_info(lexer_info *const lxinfo, FILE* file, const Keyword* keywords) { lxinfo->file = file; lxinfo->keywords = keywords; lxinfo->pos.line = 1; ...
/** * Copyright © 2021 Push Technology 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 applicable law or agree...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <fcntl.h> #include <errno.h> #include <termios.h> static struct termios gOriginalTTYAttrs; void setDTR(int fuart, int set) { int status; ioctl(fuart, TIOCMGET, &status); if(set) status |= TIOCM_DTR; else...
#include "log.h" #include "utarray.h" #include "utstring.h" #include "unity.h" #include "s7.h" /* we need both APIs for test validation */ #include "sealark.h" #include "sunlark.h" #include "test_string_set.h" UT_string *buf; UT_string *test_s; /* UT_array *result; */ char *build_file = "test/unit/sunlark/BUILD.st...
#include <stdlib.h> #include <string.h> #include <inttypes.h> #include "bashtypes.h" #include "shell.h" #include "builtins.h" #include "common.h" #include "xmalloc.h" #include "bashgetopt.h" typedef struct sort_element { ARRAY_ELEMENT *v; // used when sorting array in-place char *key; // used when ...
#include <stdio.h> #include <stdlib.h> //I've provided "min" and "max" functions in //case they are useful to you int min (int a, int b) { if (a < b) { return a; } return b; } int max (int a, int b) { if (a > b) { return a; } return b; } //Declare your rectangle structure here! struct rectangle{ ...
/* * ACE/gredit - 2d finite element grid generation * * <NAME> and <NAME> * * Copyright 1990-2003 Oregon Health and Science University * All Rights Reserved. * */ /* * * Locator Panel * */ #ifndef lint static char RCSid[] = "$Id: locatewin.c,v 1.2 2003/07/24 15:44:05 pturner Exp $"; #...
/** * @file sdk.c * @brief * * DAPLink Interface Firmware * Copyright (c) 2017-2017, 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...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#include "tarantula.h" #include <fcntl.h> // O_RDONLY #include <stdlib.h> // atoi, strtoll #include <string.h> // strncpy #include "platform.h" void __raw_to_norm(tar_raw *header, tar *norm_header) { /* Converts a RAW tar header (all char, * no ints) to a normalized header (chars+ints) */ /* Keep th...
/* * (c) Copyright IBM Corporation 2021 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
/* This file is part of libmicrospdy Copyright Copyright (C) 2012 <NAME> 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) a...
/* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Parse. * * As with any s...
/* * Copyright (c) 2006-2009, FlexiGuided GmbH, Berlin, Germany * Author: <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 m...
/* * linux/arch/alpha/mm/init.c * * Copyright (C) 1995 <NAME> */ #include <linux/config.h> #include <linux/signal.h> #include <linux/sched.h> #include <linux/head.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/types.h> #include <linux/ptrace.h> #include <linux/mm...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "glme.h" #define NUMTESTS 20 typedef struct data_t { int64_t *vec; uint64_t vlen; } data_t; int datacmp(data_t *a, data_t *b) { int k; if (a->vlen != b->vlen) return a->vlen > b->vlen ? -1 : 1; for (k = 0; k < a->vlen; k++) { if...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <goodbrew/config.h> #include <goodbrew/base.h> #include <goodbrew/paths.h> #include <goodbrew/useful.h> #if GBPLAT == GB_WINDOWS #include <windows.h> // for getting the data directory #endif #if GBPLAT == GB_LINUX #include <errno.h> #include <sys/typ...
#include <stdio.h> #include <stdint.h> #define V100 300 uint8_t beg = 0; uint16_t waveMax = 0; uint16_t tmpMax = 0; uint16_t prevVal = 0; #define UNDEF 15000 #define END 15001 uint16_t getWaveMax(uint16_t in_data){ if (!beg){ if (in_data>V100 && !waveMax){ waveMax = in_data; } else ...
// RUN: %libomptarget-compile-run-and-check-generic // XFAIL: nvptx64-nvidia-cuda // XFAIL: nvptx64-nvidia-cuda // XFAIL: nvptx64-nvidia-cuda-newDriver // Fails on amdgpu with error: GPU Memory Error // XFAIL: amdgcn-amd-amdhsa // XFAIL: amdgcn-amd-amdhsa-newDriver #include <stdio.h> #include <omp.h> // ------------...
/* libmypaint - The MyPaint Brush Library * Copyright (C) 2012 <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 SOFTWAR...
/** * Copyright 2017, ScaleFT Inc * * 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 agr...
/* Exercise various mpf functions. */ /* Copyright (C) 2000 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP 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; eith...
/* ** (C) by <NAME> (<EMAIL>) ** ** This software is distributed under the terms of the MIT license: ** https://opensource.org/licenses/MIT ** ** ___ __ ** __/ /_ / ) ** ___ __(_ ___) / ** / / / )/ / / / ** / (_/ // (__/...
#include<stdlib.h> #include<stdio.h> #include<math.h> #include<string.h> #include<sacio.h> #include<ESF.h> int output_final_event_info(new_RECORD* my_record, new_INPUT* my_input) { int output_final_event_info_for_record(new_RECORD* my_record, new_PHASE* my_phase, FILE* out, new_INPUT* my_input); int output_final_pick...
//======================================================================== // This is a small test application for GLFW. // The program opens a window (640x480), and renders a spinning colored // triangle (it is controlled with both the GLFW timer and the mouse). //======================================================...
// // Copyright 2008-2012 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
/* * Copyright (c) 2020 Friedt Professional Engineering Services, Inc * * SPDX-License-Identifier: BSD-3-Clause */ #include <errno.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "manifest_.h" static void manifest_pack_header(man...
/* Generic Netlink helper functions */ /* (C) 2014 by sysmocom - s.f.m.c. GmbH * (C) 2018 by <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published ...
/* * Copyright (c) 2018 IOTA Stiftung * https://github.com/iotaledger/entangled * * Refer to the LICENSE file for licensing information */ #include "consensus/exit_probability_validator/exit_probability_validator.h" #include "utarray.h" #include "utils/logger_helper.h" #define WALKER_VALIDATOR_LOGGER_ID "walker_...
/************************************************************************* * * * Module: DumpHash * * * * Hash table of ex...
/* spLoadRankProp - load rankProp table */ /* Copyright (C) 2013 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "options.h" #include "jksql.h" #include "hdb.h" #include "spMapper.h" #include "rankProp.h" #include "rankPr...
#include <math.h> #include <float.h> #include "draw.h" #include "scale.h" #include "ascii.h" #include "braille.h" #include "svg.h" #include "counter.h" /* Common drawing functionality. */ static void count_points(counter *counter, plot_info *pi, data_set *ds, uint8_t column); static bool all_empty_points(plot_info ...
/******************************************************************************* * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only * intended for use with Renesas products. No other uses are authorized. This * software is owned by Renesas Electronics Corporation and is protected ...
#include <arpa/inet.h> #include <netinet/in.h> #include <pthread.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #define BUF_SIZE 512 #define GET_TIME(now) \ { ...
/* input.c */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <limits.h> #include <errno.h> #include <unistd.h> #include "input.h" #define IS_LETTER(x) ((x) >= 'A' && (x) <= 'Z') #define IS_DIGIT(x) ((x) >= '0' && (x) <= '9') static int read_key_seq(char *seq, size_t len) ...
/* Copyright ©2010 <NAME> <<EMAIL>> * See LICENSE file for license details. */ #include "dat.h" #include "fns.h" #include <string.h> static Handlers handlers; static void client_cleanup(XEmbed*); void client_manage(XWindow w) { Client **cp; Client *c; WinAttr wa; int size; c = emallocz(sizeof *c); c->w.type...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <assert.h> #include <sys/types.h> #include <sys/ioctl.h> #include <linux/spi/spidev.h> #include <cast.h> #include <echidna.h> #include <ll.h> #include <log.h> #include <runt...
/* * Copyright 2016, 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 the f...
// // Copyright (c) 2019-2022 yanggaofeng // #include <yangutil/sys/YangCTimer.h> #include <yangutil/sys/YangTime.h> #include <yangutil/yangtype.h> #include <stdio.h> #include <yangutil/yang_unistd.h> #include <yangutil/sys/YangLog.h> #include <string.h> #if !Yang_Using_Phtread #include <sys/time.h> #include <sys/t...
/* * pseultra/tools/rspvfix/src/rspvfix.c * RSP Vector load/store fixer * * (C) pseudophpt 2018 */ #include <string.h> #include <stdlib.h> #include <stdint.h> #include <stdio.h> #include <elf.h> #include <util.h> // Amounts to shift for each load/store op int shift_amounts [32] = { 0, // LBV 1, // LSV ...
#include "calculator.h" #include "calculation.h" #include "evalkit_constants.h" #include "config.h" #include "fp_atan2.h" #include "fp_atan2_lut.h" #include "saturation.h" #include "adc_overflow.h" #include "hysteresis.h" #include "calibration.h" #include "pru.h" #include <math.h> #include <stdlib.h> /// \addtogroup c...
#include <stdlib.h> #include "threading_with_obspaces.h" //@ #include "../call_perms.gh" /*@ lemma void length_remove_all_ge<t>(list<t> xs, list<t> ys) requires true; ensures length(remove_all(xs, ys)) >= length(ys) - length(xs); { switch (xs) { case nil: case cons(x0, xs0): ...
#include <sys/types.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include "blaze822.h" #include "blaze822_priv.h" // needs to be writable char textplain[] = "text/plain; charset=US-ASCII"; int blaze822_check_mime(struct message *msg) { char *v = blaze822_hdr(msg, "mime-version"); if (v && ...
/*! \file bcmltx_field_demux.c * * Field demux handler * * Built-in Transform implementation to split or recombine API fields * when they do not map directly to PT fields. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. ...
#include <stdio.h> #include "dist/wasmer-build/src/wasmer-runtime-c-api/lib/runtime-c-api/wasmer.h" #include <assert.h> #include <string.h> // Use the last_error API to retrieve error messages void print_wasmer_error() { int error_len = wasmer_last_error_length(); printf("Error len: `%d`\n", error_len); ch...
#include <stdio.h> #include <pthread.h> #include <time.h> #include <stdlib.h> #include <string.h> pthread_mutex_t *mutexes; float *x, *y, *z; typedef struct { float *vetor; unsigned int posInicial; unsigned int posFinal; unsigned int contMutexThread; } thread_argPreenche, *ptr_thread_argPreenche; typ...
// Copyright(c) 2018, 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 the ...
#include <gpio.h> #include <gpioextra.h> #include <keyboard.h> #include <ps2.h> #include <timer.h> #include <uart.h> #include <interrupts.h> #include <ringbuffer.h> static unsigned int CLK, DATA; static rb_t *rb; static int enable_interrupts = 0; static bool clock_edge(unsigned int pc) { static int n; static char...
#include <stdio.h> #include <pthread.h> int a=1, b=0, c=0, d=0; //variáveis globais int canal[8] = {-1,-1,-1,-1,-1,-1,-1,-1}; /*Função de recebimento*/ void receive_mes(int *buff, int c){ while(canal[c] == -1){} // faz 'nada' enquanto a posição c do vetor canal for igual a -1 (vazio) *buff = canal[c]; // val...
/* BEEBS newlib ef_log implementation ==================================================== Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. Developed at SunPro, a Sun Microsystems, Inc. business. Permission to use, copy, modify, and distribute this software is freely granted, provide...
/* * 0BSD * * BSD Zero Clause License * * Copyright (c) 2019 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR...
/** * Copyright (c) 2017 <NAME> * All rights reserved * * @file nodeFlag.c * @author <NAME> (<EMAIL>) * @date Feburary, 2017 * @brief FTI testing program. * * Checks if there is only one process per node with nodeFlag set. */ #include <fcntl.h> #include <fti.h> #include <stdio.h> #include <stdlib....
// Copyright 2015 The Weave Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/crypto_spake.h" #include <string.h> #include "src/buffer.h" #include "src/crypto_utils.h" #include "src/log.h" #include "src/uw_assert.h" #inc...
#include "stdio.h" #include "rpc/rpc.h" #include "nfs_prot.h" static void nfs_program_2(); nfsd_main(sock) { SVCXPRT *transp; (void)pmap_unset(NFS_PROGRAM, NFS_VERSION); transp = svcudp_create(sock, NFS_MAXDATA, NFS_MAXDATA); if (transp == NULL) { (void)fprintf(stderr, "cannot create udp service...
#include <stdio.h> #include "rsa.h" #include <string.h> #include <stdlib.h> #include "sha256.h" #include "constantsA.h" #include <inttypes.h> #include "aes_decrypt.h" #include "aes_encrypt.h" #define NUM_OF_NIST_KEYS 16 char* sha256hash(char *input,int n) { uint8_t digest[32]; char* out[32]; char out2[31]; c...
/* B W S T A T . C * BRL-CAD * * Copyright (c) 1986-2016 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 ...
/* Copyright 2019, <NAME> (<EMAIL>) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of condition...
#include "util.h" /* Check matching of pattern in a string using regex */ int is_matching_pattern(const char *str, const char *pattern) { regex_t re; int val_regcomp, val_regexec, val_return; // Creation of regex val_regcomp = regcomp(&re, pattern, REG_EXTENDED); if (val_regcomp != 0) { fprintf(stderr, "regc...
/* * Copyright 2009 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. */ /* * Checks that CPU ID features match instructions found in executable. */ #include <stdlib.h> #include <string.h> #include "native_clien...
#include "zynqflow.h" #include <linux/delay.h> #include <linux/wait.h> static bool xdma_filter(struct dma_chan *chan, void *param){ if (*((int *)chan->private) == *(int *)param) return true; return false; } static void dmatest_slave_tx_callback(void *completion) { complete(completion); } static void...
/* pfamXref read and parse the Pfam-A data file to generate the .tab files to enable xref between Pfam and SWISS-PROT entries */ #include "common.h" #include "hCommon.h" #include "hdb.h" void usage() /* Explain usage and exit. */ { errAbort( "pfamXref - create pfam xref .tab file " "usage:\n" " pfamXref p...
#include "aml.h" DECLARE_DATA_IDENT(div_op_id, "/"); DECLARE_DATA_FUNC(div_op_fnc, &div_op_id, div_fnc); /* ----------------------------------------------------------------------- */ int comp_str_split( fncrc_t *fncrc, sess_t *sp, data_t *p1, /* String */ data_t *p2, /* Search */ data_t **pp ) { int ...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or its l...
// // Copyright (c) 2017 The Khronos Group Inc. // // 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...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
/* Unix SMB/CIFS implementation. Extract the user/system database from a remote SamSync server Copyright (C) <NAME> <<EMAIL>> 2004-2005 Copyright (C) <NAME> <<EMAIL>> 2008 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
#include "sys_ops.h" void malloc_users_passwords(char ***user_names, char ***passwords){ int name_len = 10; int pass_len = 10; *(user_names) = (char **)malloc(sizeof(char *) * user_count); *(passwords) = (char **)malloc(sizeof(char *) * user_count); // # pragma omp parallel for(int i=0; i < us...
/** ****************************************************************************** * @file TargetPlatform.c * @author SRA - Central Labs * @version v2.1.0 * @date 5-Apr-2019 * @brief Initialization of the Target Platform ****************************************************************************...
/******************************************************************** * * * Project: Sudoku Solver * * * * Author: <NAME> ...
#include <stdio.h> #include <stdlib.h> #include <string.h> /******************************************************************************* Program: fisisc.c Purpose: Reads single or multiple ISC 96-byte format file(s) and fixes: - next record category field (-1 for last card in file) - number of st...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f4xx_hal_msp.c * @brief This file provides code for the MSP Initialization * and de-Initialization codes. ********************************************...
/* * 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...
/** * */ #include <stdint.h> #include <stdbool.h> #include "assert.h" #include "dbg.h" #include "tempmgr.h" #include "ext/TivaWare/inc/tm4c123gh6pm.h" #include "ext/TivaWare/inc/hw_gpio.h" #include "ext/TivaWare/inc/hw_memmap.h" #include "ext/TivaWare/driverlib/sysctl.h" #include "ext/TivaWare/driverlib/gpio.h" #inc...
// Bezlit.c // OpenGL SuperBible // Program by <NAME>. #include "../../common/openglsb.h" // System and OpenGL Stuff #include "../../common/gltools.h" // OpenGL toolkit // The number of control points for this curve GLint nNumPoints = 3; GLfloat ctrlPoints[3][3][3]= {{{ -4.0f, 0.0f, 4.0f}, { -2.0f, 4.0...
/* * Copyright (c) 2007 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * complia...
#include "common.h" #include "power.h" #include "ff.h" #include "firm.h" #include "sha.h" #include "i2c.h" //for debug purposes only #include "draw.h" #define FIRM_BUFFER ((void*)0x27C00000) #define FIRM_MAXSIZE (0x3FFB00) #define RANGE(x,a,b) (((x)>=(a))&&((x)<=(b))) u32 wlist[][2] = { {0x08000000, 0x08100000}, ...