source
string
code_lang
string
content
string
idx
int64
the-stack-v2-dedup
C
/** ****************************************************************************** * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "motor_pcb_interface.h" /* Private typedef ---------...
1,328,800
the-stack-v2-dedup
C
// 2015-05-22 18:40:15 #include <stdio.h> #define MAX 50010 int main() { int N, M, fila_e[MAX], i, X, k; scanf(" %d" , &N); i=0; while(i<N){ scanf(" %d" , &fila_e[i]); i++; } scanf(" %d" , &M); k=0; while(k<M){ scanf(" %d" , &X); i=0; while(i<...
1,328,801
the-stack-v2-dedup
C
#ifndef _FIR_H_ #define _FIR_H_ #include "sys.h" #include "hammingfir.h" #include "math.h" #include "arm_math.h" #endif
1,328,802
the-stack-v2-dedup
C
#include "PdfStreaming.h" #include "PdfDatasink.h" #include "PdfDict.h" #include "PdfAtoms.h" #include "PdfStandardAtoms.h" #include "PdfString.h" #include "PdfXrefTable.h" #include "PdfStandardObjects.h" #include "PdfArray.h" typedef struct t_pdoutstream { fOutputWriter writer; void *writercookie; pdu...
1,328,803
the-stack-v2-dedup
C
/* * Copyright 2020 Jay Heng */ #ifndef __KFLASH_FILE__ #define __KFLASH_FILE__ #include "kflash_drv.h" /******************************************************************************* * Definitions ******************************************************************************/ /* The Flash size used to save fil...
1,328,804
the-stack-v2-dedup
C
/* File Comment * --------------------------------------------------------------------------------------------------- * [FILE NAME]: <lcd.c> * * [AUTHOR]: Abdallah Hossam-Eldin Hosny * * [DATE CREATED]: <30 - 10 - 2020> * * [DESCRIPTION]: source file for LCD * --------------------------------------------------...
1,328,805
the-stack-v2-dedup
C
#ifndef vcl_generic_locale_h_ #define vcl_generic_locale_h_ // THIS IS A GENERATED FILE. DO NOT EDIT! -- Instead, edit vcl_locale.hhh and run make // use_facet #ifndef vcl_use_facet #define vcl_use_facet vcl_generic_locale_STD :: use_facet #endif // has_facet #ifndef vcl_has_facet #define vcl_has_facet vcl_generic_lo...
1,328,806
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> int frobcmp (char *a, char *b) { //accepts two pointers to the beginning of char arrays //end of the char array indictaed by a space character char *arrA = a; char *arrB = b; int i= 0; int result = 0; while(arrA[i] != ' ' && arrB[i] != ' ') { int itemA = arrA[...
1,328,807
the-stack-v2-dedup
C
#ifndef _LOG_H__ #define _LOG_H__ #include "spdlog/spdlog.h" extern spdlog::logger* g_log; extern void LogInit(); #endif //_LOG_H__
1,328,808
the-stack-v2-dedup
C
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (C) 2011-2014 Luigi Rizzo. 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...
1,328,809
the-stack-v2-dedup
C
/****************************************************************************} '* *} '* APPIO.H Version 2.0 date :13/06/2000 *} '* Copyright (c) Applicom International. All rights reserved. *} '* ...
1,328,810
the-stack-v2-dedup
C
// Self_Monitor.c // Author: Matthew Barondeau // Created 11/24/2019 // Updated 03/01/2020 #include "msp.h" #include "Drivers/CortexM.h" #include "Drivers/AP.h" #include "GSR.h" #include "ROS.h" #include "ACC.h" #include "driverlib/MSP432P4xx/driverlib.h" volatile int16_t x = 0; volatile int16_t y = 0; volatile int16...
1,328,811
the-stack-v2-dedup
C
#ifndef COMMON_H #define COMMON_H #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include "vpi_user.h" #include <stdbool.h> #include <stdint.h> #define UNUSED(x) (void)(x) #define ENABLE_DEBUG /// Prepends the testbench name to the signal. /// e.g.: TESTBENCH_CAT(pins) => TESTBENCH_NAME.pins => origen.pi...
1,328,812
the-stack-v2-dedup
C
#pragma once #define START_LINE 12 #define CHAR_COUNT_Y 27 void TV_CursorOn(); void TV_CursorOff(); void TV_GoToXY(int x, int y); void TV_PrintChar(char ch); int TV_PrintLine(const char *text); int TV_PrintText(const char *text);
1,328,813
the-stack-v2-dedup
C
#include <stdio.h> #include "asm.h" int i = 1, n =5; int main(){ int result = 0; result = summation(); printf("%d",result); return 0; }
1,328,814
the-stack-v2-dedup
C
#include "GenericTypeDefs.h" #include "LCDAbstraction.h" #include "GLCD/GLCD.h" #include "fontRender.h" // Color GFX_COLOR _color; // Clipping region control SHORT _clipRgn; // Clipping region borders SHORT _clipLeft; SHORT _clipTop; SHORT _clipRight; SHORT _clipBottom; /**...
1,328,815
the-stack-v2-dedup
C
/* last revised 29.06.1998 */ /* mmdint.c called by genmmd.c */ /* #include "data_struct.h" */ /* *** mmdint ..... mult minimum degree initialization *** */ /* purpose - this routine performs initialization for the */ /* multiple elimination version of the minimum degree */ /* alg...
1,328,816
the-stack-v2-dedup
C
/* 1.0.0 */ /*****************************************************************************************************************************************************************\ * Module Name : Triangle1 * Description : Euler Project 18 * Original Author : Jake Nabozny * Date Created : 10/26/2012 \****...
1,328,817
the-stack-v2-dedup
C
#ifndef LINE_STRUCTURE #define LINE_STRUCTURE struct listOfText { char* word; char* wordInUpperCase; int count; listOfText* next; listOfText* pred; }; void initLineStructure(); void printTextList(listOfText* root); void printWord(listOfText* word); void clearList(listOfText* list); void deleteWord(listOfText* it...
1,328,818
the-stack-v2-dedup
C
../../../../../../secp256k1_dash/src/modules/ecdh/main_impl.h
1,328,819
the-stack-v2-dedup
C
#include<stdio.h> #include<math.h> float a,b,c; main() { printf("masukkan nilai (float) yang ingin dicari modulusnya secara berurutan (a mod b): \n"); printf("nilai a harus lebih besar dari b dan keduanya merupakan bilangan real(float)\n"); scanf("%f %f",&a,&b); c=fmod(a,b); printf("nilai modulusnya a...
1,328,820
the-stack-v2-dedup
C
// // Created by Yiping Deng on 4/9/20. // #include <coap2/coap.h> #include "log.h" #include <stdlib.h> #include <coap2/coap_dtls.h> #include "preconditions.h" #include "signal_channel_handlers.h" #include "task_env.h" #include "utils.h" #include "heartbeat.h" #include "mitigation.h" static coap_dtls_pki_t* load_pki_...
1,328,821
the-stack-v2-dedup
C
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define CHAR_SIZE 26 #define MAXSIZE 1000 typedef struct Trie { struct Trie *ch[CHAR_SIZE]; struct Trie *fail; int end; }TRIE; TRIE *root; TRIE *queue[MAXSIZE]; void initTrie() { int i; root = (TRIE *)malloc(sizeof(TR...
1,328,822
the-stack-v2-dedup
C
#include <unistd.h> #include <string.h> #include <malloc.h> #include <assert.h> #include <stdio.h> #include <errno.h> #include <fcntl.h> #include <linux.h> #include <board.h> #include <fs.h> #if 0 #include <net/net.h> #include <net/tftp.h> #include <uart/uart.h> #include <mtd/mtd.h> #include <image.h> #define KERNEL_...
1,328,823
the-stack-v2-dedup
C
/* 0.8 micron technology */ #define lambda_value 40 #include "calc.lambda" #include "cifin-cmos26g.gen" #define NOWELL #include "cifin-cmos26g.gen" #undef NOWELL /* 0.8 micron technology */ #define lambda_value 30 #include "calc.lambda" #include "cifin-cmos14b.gen" #define NOWELL #include "cifin-cmos14b.gen" #undef N...
1,328,824
the-stack-v2-dedup
C
#include "config.h" #include <assert.h> #include <stdint.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include "blake2b.h" #include "hash.h" #include "sha256.h" #include "sha3.h" #include "utils.h" void hsk_hash_blake2b(const uint8_t *data, size_t data_len, uint8_t *hash) { assert(hash != NULL);...
1,328,825
the-stack-v2-dedup
C
#include<stdio.h> int main() { int h[105],n,i,sum,avg,cnt=0; while(scanf("%d",&n)==1) { if(n==0) break; sum=0; for(i=0;i<n;i++) { scanf("%d",&h[i]) ; sum+=h[i]; } printf("Set #%d\n",++cnt); avg=sum/n; sum=0; for(...
1,328,826
the-stack-v2-dedup
C
# include <stdio.h> # include <math.h> main() { int a, b, c ; printf("Give me two numbers and I give you their and operation.\n\n"); scanf("%d %d", &a, &b); c=a&b ; printf("%d and %d give %d\n\n", a, b, c); }
1,328,827
the-stack-v2-dedup
C
#include "hashtable.h" int hash_function(char* key, int table_size){ int i=0, hash=0; for (i=0; i<strlen(key); i++) hash+=key[i]*i; return hash%table_size; } void insert_in_table(bucket** table, char* invalue, int table_size, int bucket_size, list_node* rec){ int hash; bucket_record* b;...
1,328,828
the-stack-v2-dedup
C
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pthread.h> int glob_var = 6; void *t_function(void *data) { int id; int i=0; pthread_t t_id; id = *((int*)data); t_id = pthread_self(); glob_var++; printf("pid %d t_id %lu id %d glob_var %d\n", getpid(), t_id, id, glob_va...
1,328,829
the-stack-v2-dedup
C
/* * UARTF4.h */ #ifndef UARTF4_H_ #define UARTF4_H_ #include "UARTF4_componentSpecific.h" #if (DEVICE_FAMILY_STM32F4) #include "stm32f4xx.h" #elif (DEVICE_FAMILY_STM32F0) #include "stm32f0xx.h" #endif #include <stdbool.h> #include <stdint.h> typedef struct { // GPIO uint8_t rxPin; uint8_t txPin; GPIO_Ty...
1,328,830
the-stack-v2-dedup
C
#include <stdint.h> #include <stdbool.h> #include "system_tm4c1294.h" // CMSIS-Core #include "driverleds.h" // device drivers #include "cmsis_os2.h" // CMSIS-RTOS #include "inc/hw_memmap.h" #include "driverlib/gpio.h" #include "driverlib/sysctl.h" #include "driverlib/pin_map.h" #include "system_TM4C1294.h" ...
1,328,831
the-stack-v2-dedup
C
#ifndef __DMA__ #define __DMA__ typedef struct DMA_Struct { unsigned int DISRC; unsigned int DISRCC; unsigned int DIDST; unsigned int DIDSTC; unsigned int DCON ; unsigned int DSTAT; unsigned int DCSRC; unsigned int DCDST; unsigned int DMASK...
1,328,832
the-stack-v2-dedup
C
#include "GPS.h" //GPS插口上 //GPS_EN = USART2_CTS = PA0 //RST_CTRL = USART2_RTS = PA1 void GPS_Init(void) { GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); //使能GPIOA时钟 GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0|GPIO_Pin_1; //GPS EN和RST GPIO_InitStructure.GPIO_Mode = GP...
1,328,833
the-stack-v2-dedup
C
#include "head.h" void doAdd(Restaurant **head, Restaurant *last) { //get group size from input int size = getPostInt(); if(size < 1) { printf("Error: Add command requires an integer value of at least 1\n"); printf("Add command is of form: a <size> <name>\n"); printf(" where: <size> is the size of the group ...
1,328,834
the-stack-v2-dedup
C
#include <proto/exec.h> #include <proto/dos.h> #include <proto/intuition.h> #include <proto/alib.h> /* Functions for creating and manipulating the list of memos * * Functions in this file are :- * * struct MinList *LoadData() \ Not yet included/complete * int SaveData() / * struct MinNode *Move...
1,328,835
the-stack-v2-dedup
C
#ifndef BinSearch_h #define BinSearch_h long binSearch(long* list, long n, long val){ int left = 0; int right = n; int mid; while(left <= right){ mid = (left + right) / n; if(list[mid] == val){ return mid; } else if(list[mid] < val){ left = mid + 1; } else{ right = mid - 1; } ...
1,328,836
the-stack-v2-dedup
C
//Assignment 3 : Matrix Multiplication using POSIX Threads //33165 //Name: Kevin Stephen #include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <unistd.h> int *resMat; void inputMatrix(int *mat,int rows,int cols){ for(int i=0;i<rows;i++){ for(int j=0;j<cols;j++){ printf("\nEnter (%d,%d): ",i+1,j...
1,328,837
the-stack-v2-dedup
C
#include <stdio.h> #include <sys/types.h> #include <stdio.h> #include <string.h> #include "lpthread.h" #include <stdlib.h> #include <signal.h> #ifndef LPTHREAD #endif void *functionC(); lpthread_mutex_t mutex1; int counter = 0; int main() { int rc1, rc2; lpthread_t thread1, thread2; /* Create independent ...
1,328,838
the-stack-v2-dedup
C
//without error - nested if-else #include<stdio.h> #define x 3 int main() { ; }
1,328,839
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_pre_cas_d_4.c :+: :+: :+: ...
1,328,840
the-stack-v2-dedup
C
// // ft_is_negative.h // 42_C_piscine // // Created by 游宗諭 on 2020/8/7. // Copyright © 2020 游宗諭. All rights reserved. // #ifndef ft_is_negative_h #define ft_is_negative_h #include <stdio.h> void ft_is_negative(int n); #endif /* ft_is_negative_h */
1,328,841
the-stack-v2-dedup
C
#define _FT1000IOCTLH_ #define DSPVERSZ 4 #define HWSERNUMSZ 16 #define SKUSZ 20 #define EUISZ 8 #define CALVERSZ 2 #define CALDATESZ 6 #define MAX_DNLD_BLKSZ 1024 struct pseudo_hdr __attribute__ ((packed)); typedef s...
1,328,842
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <omp.h> //Sebastian Wilk //Damian Dymek /* Niektóre zmienne na przykład maxValue będą zmienione tylko po to żeby móc to uruchamiać w celach testowych ISTOTNE: "Do pomiaru użyć omp_get_wtime()" pomiary czasu: - losowanie licz...
1,328,843
the-stack-v2-dedup
C
//{{BLOCK(_3729) //====================================================================== // // _3729, 40x40@8, // + palette 256 entries, not compressed // + 25 tiles lz77 compressed // Total size: 512 + 1524 = 2036 // // Time-stamp: 2014-11-28, 05:20:03 // Exported by Cearn's GBA Image Transmogrifier, v0.8.12 // ( ...
1,328,844
the-stack-v2-dedup
C
#include <stdio.h> int main() { int n; printf("Unesite broj: "); scanf("%i", &n); for(int i=1; i<n; i++) { int c1 = i%10; if(c1==6 && i%3==0) { printf("%i\n", i); } } return 0; }
1,328,845
the-stack-v2-dedup
C
#ifdef _UPC #include <upc_collective.h> shared double MAX_NORM; shared double max_norm_sh[THREADS]; #endif #ifdef _UPCR #error Not implemented ... upcr_pshared_ptr_t MAX_NORM; upcr_pshared_ptr_t max_norm_sh; #endif #ifdef _UPC double do_reduce(double max_norm) { int i; max_norm_sh[MYTHREAD] = max_norm; upc...
1,328,846
the-stack-v2-dedup
C
/* * itoa.h * * Created on: 18.04.2013 * Author: dev */ #include <malloc.h> #ifndef ITOA_H_ #define ITOA_H_ #define MAX_INT 2147483647 #define MIN(a,b) (((a)<(b))?(a):(b)) void _reverse(char *s) { int cnt = 0; char *t; t = s; while (*t) { cnt++; t++; } while (cnt > 0) { char tmp; tmp = *s; *...
1,328,847
the-stack-v2-dedup
C
/* * OS Abstraction Layer Extension - the APIs defined by the "extension" API * are only supported by a subset of all operating systems. * * Copyright (C) 2014, Broadcom Corporation. All Rights Reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee i...
1,328,848
the-stack-v2-dedup
C
/* * floatPoint_vad_hwindow.c * * Created on: Sep 10, 2012 * Author: BLEE * * Description: This is the Hanning Window program for floating-point VAD (voice activity detection) experiment * * For the book "Real Time Digital Signal Processing: * Fundamentals, Implementation and Application...
1,328,849
the-stack-v2-dedup
C
//____________________________________________________________________ // // Generation process: MB looking for fragmentation functions // Using Pythia6 with AliROOT // // Author: Héctor Bello Martínez <hbelloma@cern.ch> // Update: 2018-10-12 // // Modification by: // Date: // //---------------------------------------...
1,328,850
the-stack-v2-dedup
C
#ifndef DEVICE_ALL_H_ #define DEVICE_ALL_H_ #include "generic.h" #include "basic.h" #include "source.h" #include "diode.h" #include "transistor.h" #include "mixed.h" #include "indicators.h" #endif
1,328,851
the-stack-v2-dedup
C
/* * Copyright 2019-2020 NXP * * 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, di...
1,328,852
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memcpy.c :+: :+: :+: ...
1,328,853
the-stack-v2-dedup
C
#include <stdio.h> void my_swap(int *a, int* b) { int t = *b; *b = *a; *a = t; } int main() { printf("Enter two integers:\n"); int a, b; scanf("%d %d", &a, &b); my_swap(&a, &b); printf ("After the swap:\n%d - %d\n", a, b); }
1,328,854
the-stack-v2-dedup
C
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { int c1 = 0, c2 = 0; srand((unsigned)time(NULL)); while (1) { system("cls"); c1 += rand() % 5 + 1; c2 += rand() % 5 + 1; printf("CAR1 : "); for (int i = 0; i < c1; i++) printf("*"); printf("\nCAR2 : ");...
1,328,855
the-stack-v2-dedup
C
#include "duktape.h" duk_ret_t mn_bi_util_inherits(duk_context *ctx) { return 0; }
1,328,856
the-stack-v2-dedup
C
#pragma once #include <stdio.h> #include <stdint.h> #include <stddef.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <limits.h> #include "pages.h" #include "shared.h" #include "errors.h" void html_parser_get_page_tokens(page_t *page, const char *data, size_t size);
1,328,857
the-stack-v2-dedup
C
#include "sort.h" size_t find_least(int *array, size_t size, int n, size_t actual_i); /** * selection_sort - Selection sort algorithm * Description: Selection sort algorithm * @array: Array * @size: Size of array * Return: */ void selection_sort(int *array, size_t size) { unsigned int i, least_index; int aux;...
1,328,858
the-stack-v2-dedup
C
/* * getDiscount_data.c * * Code generation for function 'getDiscount_data' * */ /* Include files */ #include "rt_nonfinite.h" #include "getDiscount.h" #include "getDiscount_data.h" #include <stdio.h> /* Variable Definitions */ const volatile char_T *emlrtBreakCheckR2012bFlagVar; /* End of code generation (getD...
1,328,859
the-stack-v2-dedup
C
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #define f(x) x*x typedef uint16_t u16; typedef unsigned char u8; int main() { printf("\n\nblatt02_2_2 - Aufgabe 2.2\n\n"); printf("x : f(x) = x*x\n"); for (float x = -5.0f; x <= 5.0f; x+=.125f) printf("%f : %f\n", x, f(x)); return 0; }
1,328,860
the-stack-v2-dedup
C
/***************************************************************************** * Copyright Statement: * -------------------- * This software is protected by Copyright and the information contained * herein is confidential. The software may not be copied and the information * contained herein may not be used o...
1,328,861
the-stack-v2-dedup
C
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <string.h> #ifdef HAVE_NETINET_IN_H # include <sys/types.h> # include <netinet/in.h> #endif #ifdef HAVE_WINSOCK2_H # include <winsock2.h> #endif #if USE_GNUTLS_OPENSSL # include <gnutls/openssl.h> #elif USE_OPENSSL # include <openssl/ssl.h> #endif #include ...
1,328,862
the-stack-v2-dedup
C
#include <avr/io.h> #include <avr/interrupt.h> #define F_CPU 16000000UL #define BAUD 9600 #define MYUBRR F_CPU/16/BAUD-1 #define TIMER1_CNT 15000 #define TCNT_INIT 49910 #define MAXSTR 8 #include <util/delay.h> #include <stdlib.h> enum { NOT_PUSHED, NEW_MAYBE, JUST_PUSHED, OLD_MAYBE, OLD_PUSHED }; /* ...
1,328,863
the-stack-v2-dedup
C
int rec(int n) { if (n <= 0) { return 0; } if (n % 2 != 0) { return 1 + rec(n-1); } else { //return rec(n - 2); // NON FAIL return 1 + rec(n - 2); // FAIL } }
1,328,864
the-stack-v2-dedup
C
#include <stdio.h> #include <unistd.h> int main(void) { int fd[2]; pid_t childpid; if(pipe(fd)==-1) perror("cannot create a pipe:"); childpid=fork(); if(childpid==0) { //child fprintf(stderr, "child sleeping for 3 secs\n"); sleep(3); fprintf(stderr, "child process\n"); close(fd[0]); write(fd[1], "p...
1,328,865
the-stack-v2-dedup
C
/* * LCD_conf.h * * Created: 9/21/2019 9:32:51 AM * Author: Louda */ #ifndef LCD_CONF_H_ #define LCD_CONF_H_ #define LCD_MODE 4 #define LCD_RS DIO_PORTC_PIN0 #define LCD_R_W DIO_PORTC_PIN1 #define LCD_EN DIO_PORTC_PIN2 #define LCD_PORT_VAL DIO_PORTD #define LCD_PORT_DIR DIO_DDRD #endif /* L...
1,328,866
the-stack-v2-dedup
C
/* * * command.c * */ #define MAXARG 20 #define MAXFNAME 45 #define MAXWORD 20 #include "commdefs.h" /* command(): execute commands from the shell. */ TOKEN command(int *waitpid, BOOLEAN makepipe,int *pipefdp) { TOKEN token, term; int argc, srcfd, dstfd, pfd[2]; pid_t pid; char *argv[MAXARG+1], srcfile[MA...
1,328,867
the-stack-v2-dedup
C
#include "cmn.h" ValPTZ PtzMenu[CHANNELNUM]; PTZMENU ptzmenupic; #define PTZFIXEDMENU 6 U8 MenuPTZNum=0; U8 Menu_PTZ_DataPos[]= { 236,74, 236,100, 236,126, 236,152, 50,220, 224,220 }; U16 Pre_ptzpos[] = { 236,74, 362,98, 236,100, 362,124, 236,126, 362,150, 236,152, 362,176, 50,220, 210,244, 224,2...
1,328,868
the-stack-v2-dedup
C
/**************************************************************************** ** ** http://www.qxorm.com/ ** http://sourceforge.net/projects/qxorm/ ** Original file by Lionel Marty ** ** This file is part of the QxOrm library ** ** This software is provided 'as-is', without any express or implied ** warranty. ...
1,328,869
the-stack-v2-dedup
C
#ifndef __neCardAP__ #define __neCardAP__ extern "C"{ extern struct neutcardap_common{ int neflxflg; float neyears; int tauflg; int newatervol; }neutcardap_; } #endif
1,328,870
the-stack-v2-dedup
C
#include <stdio.h> #include <errno.h> #include <arpa/inet.h> #include <wordexp.h> #include <string.h> #include <getopt.h> #include <fcntl.h> #include <unistd.h> #include <strings.h> #include <stdlib.h> #include <readline/readline.h> #include <readline/history.h> #include "sd.h" #include "crc-16.h" #include "nand.h" #d...
1,328,871
the-stack-v2-dedup
C
/***3.字符串替换。在主串S中查找子串T,将所有的T都替换成字符串R。***/ #include<stdio.h> #include<string.h> void replace (char *s, char *t, char *q) { int i,j,k; int lens=strlen(s); int lent=strlen(t); int lenq=strlen(q); for(i=0;i<=lens-lent;i++){ k=i; for(j=0;j<lent;j++,k++){ if(s[k]==t[j]) continue; else...
1,328,872
the-stack-v2-dedup
C
#ifndef _FRAMEBUFFER_SERIALPORT_LIB_H_ #define _FRAMEBUFFER_SERIALPORT_LIB_H_ typedef struct _FBCON_POSITION { INTN x; INTN y; } FBCON_POSITION, *PFBCON_POSITION; typedef struct _FBCON_COLOR { UINTN Foreground; UINTN Background; } FBCON_COLOR, *PFBCON_COLOR; enum FbConMsgType { /* type for menu */ ...
1,328,873
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strmapi.c :+: :+: :+: ...
1,328,874
the-stack-v2-dedup
C
/** This file contains an 'Intel Peripheral Driver' and uniquely identified as "Intel Reference Module" and is licensed for Intel CPUs and chipsets under the terms of your license agreement with Intel or your vendor. This file may be modified by the user, subject to additional terms of the license agreemen...
1,328,875
the-stack-v2-dedup
C
#include<stdio.h> int main() { int n; printf("\nEnter any Number :"); scanf("%d",&n); if (n%5==0) { printf("\n The number is divisible by 5."); } if (n%11==0) { printf("\n The number is divisible by 11."); } else { printf("\n The number is not ...
1,328,876
the-stack-v2-dedup
C
#define uint08 unsigned char #define uint16 unsigned short #define uint32 unsigned int #define int08 char #define int16 short #define int32 int // DEFINE CONSTANTS //#define CLOCK_INTERNAL 0x10 //#define CLOCK_EXTERNAL 0x20
1,328,877
the-stack-v2-dedup
C
/*=========================================================================== = = = MtkSomXYToLSAry_test = = = ========...
1,328,878
the-stack-v2-dedup
C
#include "main.h" void puncher(int power) { motorSet(PUNCH_TOP, power); motorSet(PUNCH_BOT, power); } bool isReady() { return digitalRead(PUNCHER_LIMIT_SWITCH); } int shoot_timer = 0; bool shooting = false; void setPuncher () { // flips the claw while driving/lifting/etc if(joystickGetDigital(1,...
1,328,879
the-stack-v2-dedup
C
#include <stdlib.h> #include <limits.h> #include <stdio.h> #include <errno.h> int sum = 0; int fib(int number); int main(int argc, char * argv[]) { int number = 0; int i = 0; if (argc == 2) { number = atoi(argv[1]); if ((errno == ERANGE && (number == LONG_MAX || number == LONG_MIN)) || (errno != 0 && numb...
1,328,880
the-stack-v2-dedup
C
#ifndef _READER_H_ #define _READER_H_ #include "maki-uchi.h" typedef enum { BEGIN, ONE_DATE, SECOND_DATE, COUNT, EOL, END, } reader_state; struct read_runner { char *ptr; struct tm *tm; struct log_entry_s *entry; maki_uchi_log_t *log; size_t data_left; reader_state state; }; void reader_step...
1,328,881
the-stack-v2-dedup
C
/* Public domain */ #ifndef _AGAR_SG_CG_PROGRAM_H_ #define _AGAR_SG_CG_PROGRAM_H_ #include <agar/config/have_cg.h> #ifdef HAVE_CG #include <Cg/cg.h> #include <Cg/cgGL.h> typedef struct sg_cg_program { struct sg_program _inherit; enum { SG_VERTEX_PROGRAM, SG_FRAGMENT_PROGRAM } type; CGprogram *_Nullable objs...
1,328,882
the-stack-v2-dedup
C
#include <stdio.h> #include <stdint.h> uint64_t f_u_dadda_rca12(uint64_t a, uint64_t b){ uint64_t f_u_dadda_rca12_out = 0; uint8_t f_u_dadda_rca12_and_9_0 = 0; uint8_t f_u_dadda_rca12_and_8_1 = 0; uint8_t f_u_dadda_rca12_ha0_xor0 = 0; uint8_t f_u_dadda_rca12_ha0_and0 = 0; uint8_t f_u_dadda_rca12_and_10_0 =...
1,328,883
the-stack-v2-dedup
C
#ifndef _CHIMNEY_OFFLOAD_ #define _CHIMNEY_OFFLOAD_ #pragma once #if (defined(NDIS60) || NDIS_WRAPPER || defined(NDIS61) || defined(NDIS620)) // // This is the encapsulation type used by the stack for TCP connection offload // typedef struct _NDIS_TCP_CONNECTION_OFFLOAD_ENCAPSULATION { struct { UCHA...
1,328,884
the-stack-v2-dedup
C
#ifndef STOPWATCH_H #define STOPWATCH_H double get_time (); #endif
1,328,885
the-stack-v2-dedup
C
#ifndef DEBUGTOOL_H #define DEBUGTOOL_H /* 该DEBUGTOOL 如果用于对官方源代码中数据的输出,建议直接拷贝函数过去并重命名, 不建议#include,因为该文件#include "DJI_LIB/DJI_Pro_App.h",可能形成include环,过不了编译 */ #include "DJI_LIB/DJI_Pro_App.h" // 该函数用于输出官方的USB-SERIAL的通信数据 // 沿着函数 DJI_Pro_Activate_API 的调用链,最后一层就是port->write(..)调用的system call // 该函数的上一层,也就是应用程序的...
1,328,886
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include <netinet/in.h> #include <netin...
1,328,887
the-stack-v2-dedup
C
// // Created by vince on 25/11/2016. // #ifndef SOURCES_DICO_GESTLIB_H #define SOURCES_DICO_GESTLIB_H void menu(); #endif //SOURCES_DICO_GESTLIB_H
1,328,888
the-stack-v2-dedup
C
/* ============================================================================ Name : constants.h Author : Version : Copyright : Your copyright notice Description : Constants ============================================================================ */ /* Define to prevent recursive inclus...
1,328,889
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_next_line.c :+: :+: :+: ...
1,328,890
the-stack-v2-dedup
C
--- monitor/gphoto2/ggphoto2volumemonitor.c.orig 2012-05-15 18:01:50.000000000 +0000 +++ monitor/gphoto2/ggphoto2volumemonitor.c @@ -787,7 +787,7 @@ update_cameras (GGPhoto2VolumeMonitor *m usb_bus_num = hal_device_get_property_int (d, "usb.bus_number"); #if defined(__linux__) usb_device_num = hal_device...
1,328,891
the-stack-v2-dedup
C
/* * Software License Agreement (MIT License) * * Copyright (c) 2017, DUKELEC, Inc. * All rights reserved. * * Author: Duke Fong <duke@dukelec.com> */ #include "cdnet.h" #define assert(expr) { if (!(expr)) return ERR_ASSERT; } int cdnet_l0_to_frame(cdnet_intf_t *intf, cdnet_packet_t *pkt, uint8_t *buf); int ...
1,328,892
the-stack-v2-dedup
C
DEFINE_LEAF_NODE(WalkToHuman, "Chase Feeble Zombie", GameObject * human;)
1,328,893
the-stack-v2-dedup
C
/* * Filename: RRCM_DLL.H * * Description: Declares imported/exported RRCM functions. * * $Workfile: rrcm_dll.h $ * $Author: CMACIOCC $ * $Date: 20 May 1997 11:40:04 $ * $Revision: 1.23 $ * $Archive: R:\rtp\src\include\rrcm_dll.h_v $ * * INTEL Corporation Proprietary Information * This listin...
1,328,894
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <signal.h> int main(void){ pid_t otropid; printf("Por favor, introduce el pid del proceso que desea terminar: "); scanf("%d", &otropid); kill(otropid, SIGTERM); //Termina el proceso de pid = otropid, para matar s...
1,328,895
the-stack-v2-dedup
C
void ft_putchar(char c); void rush(int x, int y) { int ypos; int xpos; ypos = 0; while (ypos < y) { xpos = 0; while (xpos < x) { if ((ypos == 0) && (xpos == 0 || xpos == x - 1)) ft_putchar('A'); else if ((ypos == y - 1) && (xpos == 0 || xpos == x - 1)) ft_putchar('C'); else if ((ypos == 0 ...
1,328,896
the-stack-v2-dedup
C
#include<stdio.h> const int N = 1e5 + 5; int memo[100005]; int min(int a , int b){ if(a < b)return a; else return b; } int f(int n){ if(memo[n] != -1)return memo[n]; int count = 0; int a = n; int b = n; for(int i = 2; i*i <= n ; i++){ if(n%i == 0){ if(count == 0){ ...
1,328,897
the-stack-v2-dedup
C
#include "Filter.h" //Getting max V(Vx, Vy) from two frames double getVelocity(Mat frame1, Mat frame2);
1,328,898
the-stack-v2-dedup
C
#include "holberton.h" /** * puts_half - function that print the second half of string * *@str: input of the string */ void puts_half(char *str) { int i, l; while (*(str + l)) l++; if ((l % 2) != 0) { for (i = l / 2 + 1; i < l; i++) _putchar(*(str + i)); } else { for (i = l / 2; i < l; i++) _putchar(*(str + i)); } ...
1,328,899