source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
#include <assert.h>
#include <exception>
#include "codegen/il2cpp-codegen.h"
// Language.Lua.Args
struct Args_t3767;
// System.Void Language.Lua.Args::.ctor()
extern "C" void Args__ctor_m11334 (Args_t3767 * __this, const MethodInfo* method) IL2CPP_METHOD_ATTR;
| 1,331,000 |
the-stack-v2-dedup | C | /*
* mqtt.c
*
* Created on: May 12, 2015
* Author: jk
*/
#include <stdio.h>
#include <string.h>
#include <mosquitto.h>
#include "object_mc.h"
#include "log.h"
#ifdef WITH_CATEGORY
#define LOG_DEBUG(...) \
zlog(cat[MOD_MQTT], __FILE__, sizeof(__FILE__) - 1, __func__, sizeof(__func__) - 1, __LINE__, ZLOG... | 1,331,001 |
the-stack-v2-dedup | C | #include<stdio.h>
int main(int argc, char *argv[])
{
int bug = 100;
double bug_rate = 1.2;
printf("You have %d bugs at an imaginary rate of %f\n",bug,bug_rate);
long universe_of_defects = 1L * 1024L * 1024L * 1024L;
printf("The entire universe has %ld bugs\n",universe_of_defects);
double expected_bugs = bug * ... | 1,331,002 |
the-stack-v2-dedup | C | #include "holberton.h"
/**
* reverse_array - function reverses the content of an array.
* @a: array to be reversed
* @n: number of elements in the array
*/
void reverse_array(int *a, int n)
{
int i = 0, j = 0, tmp = 0;
j = n - 1;
while (i < n / 2)
{
tmp = a[i];
a[i] = a[j];
a[j--] = tmp;
i++;
}
}... | 1,331,003 |
the-stack-v2-dedup | C | #include <tv_01_mbi_hardware.c>
#include <tv_03_mbi_32led_don.c>
#include <tv_04_mbi_4led_7doan.c>
#include <tv_05_mbi_8led_7doan.c>
#include <tv_06_mbi_lcd_glcd.c>
#include <tv_10_mbi_led_matran.c>
#include <TV_PICKIT2_SHIFT_32LED_DON.c>
#include <TV_PICKIT2_SHIFT_DS18B20.c>
#include <TV_PI... | 1,331,004 |
the-stack-v2-dedup | C | // 3. 编写一个文件拷贝程序,提示用户输入文本文件名,并以该文件名作为原始文件名
// 和输出文件名。该程序要使用ctype.h中的 toupper()函数,在写入到输出文件时
// 把所有文本转换成大写。使用标准I/O和文本模式。
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define LIM 80
char * s_gets(char * st, int n);
int main(void)
{
FILE *fp;
char file[LIM];
char ch;
printf("Enter ... | 1,331,005 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
/*5. Uma loja de discos anota diariamente durante o mÍs de marÁo a quantidade de discos vendidos.
Determinar em que dia desse mÍs ocorreu a maior venda e qual foi a quantidade de discos vendida nesse dia.*/
int main (){
int vetor[30],i,j,n,m... | 1,331,006 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: ... | 1,331,007 |
the-stack-v2-dedup | C | #pragma once
#include <Windows.h>
//ΜωΝΈΓχΞ»ΝΌ
void LoadTransparentBM(HINSTANCE h,HDC hdc,int ID,int nXOriginDest,int nYOriginDest,int nWidthDest,int hHeightDest,int nXOriginSrc,int nYOriginSrc, int nWidthSrc,int nHeightSrc, UINT crTransparent );
| 1,331,008 |
the-stack-v2-dedup | C | /**********************************************************************
> File Name: main.c
> Author: Rmoker
> Mail: rmokerone@gmail.com
> Created Time: Thu 22 May 2014 12:19:26 PM CST
*********************************************************************/
#include "common.h"
#include "dev_ov7725.h"
extern DMA_I... | 1,331,009 |
the-stack-v2-dedup | C | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example9 banjo file
#pragma once
#include <zircon/compiler... | 1,331,010 |
the-stack-v2-dedup | C | #include "common.h"
#include <stdio.h>
char *get_homedir() {
char *homedir;
if ((homedir = getenv("HOME")) == NULL) {
homedir = getpwuid(getuid())->pw_dir;
}
assert(homedir != NULL);
return homedir;
}
int get_queue(char *path, int id) {
key_t key = ftok(path, id);
assert(key != -1... | 1,331,011 |
the-stack-v2-dedup | C | // /d/city/shangshu/road4
inherit ROOM;
void create()
{
set("short", "小路");
set("long",@LONG
你走在尚书府的一条僻静的小路上。这条小路连接着花园和一间
废弃的杂货屋,平常很少有人来此。东面的花园渐渐地远了,西面的
门都已经脱落的废屋已历历在目。北面是高耸的院墙。
LONG
);
set("exits", ([
"west": __DIR__"feiwu",
"east": __DIR__"huayuan",
]));
set(... | 1,331,012 |
the-stack-v2-dedup | C | //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by PigSrv.rc
//
#define IDI_ICON1 1
#define IDS_PROJNAME 100
#define IDR_PigSrv 100
#define IDR_PigSession 101
#define IDS_SYNTAX_9X ... | 1,331,013 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* add_lex_node.c :+: :+: :+: ... | 1,331,014 |
the-stack-v2-dedup | C | #include <stdlib.h>
#include <string.h>
#include "statusline.h"
void ui_statusline_init(ui_t *ui)
{
ui->window = newwin(0, 0, 0, 0);
ui->flags = 0;
ui-> min_width = 0;
ui-> min_height = 1;
}
void ui_statusline_draw()
{
}
void ui_statusline_release()
{
}
| 1,331,015 |
the-stack-v2-dedup | C | #ifndef NGX_HTTP_COUCHLOOKUP_MODULE_H
# define NGX_HTTP_COUCHLOOKUP_MODULE_H
# include <libcouchbase/couchbase.h>
# include "ngx_http_hashtb.h"
/**
* @brief Macros to handle credentials file parsing
*/
# define _CREDS_TOKEN_DELIM (":\n")
# define _HANDLE_CREDS_TOKEN_ERROR(token) \
if (toke... | 1,331,016 |
the-stack-v2-dedup | C | /****************************************************************************
****************************************************************************/
#include "ui_common.h"
#include "ui_terrestrial_full_search.h"
enum control_id
{
IDC_FULL_SEARCH_INVALID = 0,
IDC_FULL_SEARCH_START_FREQUENCY,
IDC_FULL_S... | 1,331,017 |
the-stack-v2-dedup | C | /*********************************************************
Copyright (C),2012-2018,Electronic Technology Co.,Ltd.
File name: Font.h
Author: Txl
Version: 1.0
Date: 2015-5-30
Description:
History:
1.Date: 2015-5-30
Author: Txl
Modification: Created file
****************... | 1,331,018 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlcat.c :+: :+: :+: ... | 1,331,019 |
the-stack-v2-dedup | C | #include <8051.h>
#define False 0
#define True 1
main()
{
int i;
unsigned char *n="H";
TMOD=0x20; /* timer 1 mode 2 (auto reload) */
TH1=-3; /* 9600 Baud rate*/
SCON=0x50; /* 8-bit, 1 stop, receive enabled */
IE=0x90; /* Enable serial Interrupt*/
TR1=True; /* start timer 1 */
while (True){
... | 1,331,020 |
the-stack-v2-dedup | C | /*_ loctime.c Sun Apr 16 1989 Modified by: Walter Bright */
/* Copyright (C) 1986-1994 by Digital Mars */
/* All Rights Reserved */
/* Written by Walter Bright */
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#in... | 1,331,021 |
the-stack-v2-dedup | C | /* Copyright (c) 2019, 2022 Dennis Wölfing
*
* 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 D... | 1,331,022 |
the-stack-v2-dedup | C | #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... | 1,331,023 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... | 1,331,024 |
the-stack-v2-dedup | C | //CODED HASAN ATİLAN.
//STRESSER.ME TEAM.
#include <stdio.h>
#define kirmizi "\033[0;31m"
#define mavi "\033[0;36m"
#define yesil "\x1b[92m"
int main(int argc, char **argv[]){
char ipayarla[255];
printf("%s İP Basariyla Calindi ! \n",mavi,kirmizi,yesil,kirmizi,yesil,kirmizi);
printf("%s Kodlama: HasanAtilan ... | 1,331,025 |
the-stack-v2-dedup | C | #include "holberton.h"
/**
* read_loop - for betty compliance
* @fd_from: the input fd
* @fd_to: the output fd
* @buf: the buffer
* @av: av
**/
void read_loop(int fd_from, int fd_to, char *buf, char **av)
{
ssize_t r = 1;
while (r)
{
r = read(fd_from, buf, BUF_SIZE);
if (r == -1)
{
close(fd_fr... | 1,331,026 |
the-stack-v2-dedup | C | #include <SFML/Network.h>
| 1,331,027 |
the-stack-v2-dedup | C | // Generated by : ImageConverter 565 v2.3
// Generated from: icon_03d.png
// Time generated: 14/09/2019 16:36:49
// Dimensions : 48x48 pixels
// Size : 4,608 Bytes
#include <avr/pgmspace.h>
const unsigned short icon_03d[0x900] PROGMEM ={
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0... | 1,331,028 |
the-stack-v2-dedup | C | /*
MikMod Sound System
By Jake Stine of Divine Entertainment (1996-2000)
Support:
If you find problems with this code, send mail to:
air@divent.org
Distribution / Code rights:
Use this source code in any fashion you see fit. Giving me credit where
credit is due is optional, depending on your own lev... | 1,331,029 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: ... | 1,331,030 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Utn_Funciones.h"
int main()
{
int resultado;
getNumber(resultado,"Ingrese un numero","Error",0,100,3);
printf("Hello world!\n");
return 0;
}
| 1,331,031 |
the-stack-v2-dedup | C | #ifndef __heap_h_
#define __heap_h_
typedef struct heap_s heap_t;
typedef int (*heap_less)(void *l, void *r);
struct heap_s {
int cap;
int len;
void **data;
heap_less less;
};
heap_t *heap_init(int cap, heap_less less);
int heap_push(heap_t *heap, void *data);
void *heap_pop(heap_t ... | 1,331,032 |
the-stack-v2-dedup | C | #ifndef SERIAL_H
#define SERIAL_H
#include "../lib/system.h"
#define PORT_COM1 0x3f8
void qemu_printf(const char* s, ...);
#endif | 1,331,033 |
the-stack-v2-dedup | C | /* ========================================================================
simple lightness modulation of colors in perceptual color space
Copyright (C) 2017 Christoph Hormann <chris_hormann@gmx.de>
========================================================================
*/
/*
* Compiling:
* You need a ... | 1,331,034 |
the-stack-v2-dedup | C | #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... | 1,331,035 |
the-stack-v2-dedup | C | /* -*-C-*-
********************************************************************************
*
* File: chop.c (Formerly chop.c)
* Description:
* Author: Mark Seaman, OCR Technology
* Created: Fri Oct 16 14:37:00 1987
* Modified: Tue Jul 30 16:41:11 1991 (Mark Seaman) marks@hpgrlt
* Languag... | 1,331,036 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include <signal.h>
#include <unistd.h>
/* The following block of code allows this file to work as a
* header file for most files (letting them know about extern
* variables), but actually declare the variables if MAIN is
* defined. */
#ifdef MAIN
#define EXT... | 1,331,037 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_N 31
typedef struct Node_
{
int value;
struct Node_ *left;
struct Node_ *right;
}Node;
void BuildTree(int *post, int *in, int N, Node **root)
{
if(N==0)
return;
int pos, i;
for(i=0; i<N; ++i)
{
if(post[N... | 1,331,038 |
the-stack-v2-dedup | C | /*****************************************************************/
/* Unlimited Sps */
/* Hps max of wearer at 4/5 original max */
/* Hp cost when free sp given, but no chance of death from ring */
/* Returns a constant negative AC ... | 1,331,039 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strncmp.c :+: :+: :+: ... | 1,331,040 |
the-stack-v2-dedup | C | int main(int argc, char * argv[]) {
if (argc == 0) {
return 0;
} else {
return 0;
}
}
int test(int condition) {
if(condition > 0) {
return 1;
} else {
return 0;
}
} | 1,331,041 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
#include <stdio.h>
typedef struct {
char** keys;
char** values;
int entry_count;
} kv_file_t;
kv_file_t* create_empty_kv();
void add_kv_entry(kv_file_t* kv_file, char* key, char* value);
void open_kv_file(char* filename, kv_file_t* kv_file_out);
void create_kv_file(char* filena... | 1,331,042 |
the-stack-v2-dedup | C | #include <stdio.h>
int main (void) {
int n;
int arr[10];
int sum = 0;
int i;
int j;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &arr[i]);
}
for (i = 1; i <= n - 1; i++) {
for (j = i + 1; j <= n; j++) {
sum += arr[i] * 10 + arr[... | 1,331,043 |
the-stack-v2-dedup | C | ../../../TuyaSmartDeviceKit/Headers/TuyaSmartDeviceKit.h | 1,331,044 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <windows.h>
#include <conio.h>
#define LEN sizeof(struct ALL)
struct date //日期格式
{
int year;//年
int month;//月
int day;//日
}today={1998,3,1};
struct usage //用法与用量
... | 1,331,045 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstclear_bonus.c :+: :+: :+: ... | 1,331,046 |
the-stack-v2-dedup | C | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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... | 1,331,047 |
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 or dis... | 1,331,048 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdbool.h>
typedef struct stackSpot {
int value;
struct stackSpot* next;
} stackSpot;
typedef struct stack {
stackSpot* top;
} stack;
int pop(stack* this){
int val = this->top->value;
this->top = this->top->next;
return val;
}
void push(stack* this, stackSpot* newElem){
ne... | 1,331,049 |
the-stack-v2-dedup | C | #include "optimisations/ohneschach/immobility_tests_help.h"
#include "stipulation/stipulation.h"
#include "solving/machinery/slack_length.h"
#include "stipulation/pipe.h"
#include "optimisations/ohneschach/stop_if_check.h"
#include "debugging/trace.h"
#include "debugging/assert.h"
typedef struct
{
boolean move_to... | 1,331,050 |
the-stack-v2-dedup | C | #pragma once
double __stdcall CalRam(double x);
double __stdcall CalRam2(double x);
double __stdcall CalRam3(double x);
| 1,331,051 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(void){
char n;
int x,y,i;
printf("enter ur name:");
i=scanf("%c%d%d",&n,&x,&y);
printf("n=%c\tx=%d\ty=%d\ti=%d",n,x,y,i);
return 0;
}
//to count num of char
| 1,331,052 |
the-stack-v2-dedup | C | #ifndef _IMAGE_CORE_H_
#define _IMAGE_CORE_H_
#include"hls_video.h" //调用可以综合的视频库
//图像最大尺寸
#define MAX_WIDTH 800
#define MAX_HEIGHT 600
//定义图像处理核,要用到的结构体
typedef hls::stream<ap_axiu<24,1,1,1> > AXI_STREAM_IN;
typedef hls::stream<ap_axiu<24,1,1,1> > AXI_STREAM_OUT;
typedef hls::Mat<MAX_HEIGHT, MAX_WIDTH, HLS_8UC3> RGB... | 1,331,053 |
the-stack-v2-dedup | C | #include <gmp.h>
#include <stdio.h>
#include <stdlib.h>
#include "../structure/structure.h"
#include "../signature/sha3.h"
#include "../calcul/calcul.h"
#include "gestion_block.h"
#include "oaep.h"
#define TAILLE_INT 32
#define TAILLE_SHA3_256 256
void i2osp(mpz_t res, mpz_t graine, mpz_t nombre) {
// Init
m... | 1,331,054 |
the-stack-v2-dedup | C | /* SPDX-License-Identifier: BSD-3-Clause */
/*
* Authors: Roxana Nicolescu <nicolescu.roxana1996@gmail.com>
*
* Copyright (c) 2019, University Politehnica of Bucharest
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... | 1,331,055 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* input.c :+: :+: :+: ... | 1,331,056 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_get_link.c :+: :+: :+: ... | 1,331,057 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
// System.Collections.Generic.IDictionary`2<System.String,System.Object>
struct IDictionary_2_t432;
// System.String
struct String_t;
// System.Threading.ReaderWriterLockSlim
struct ReaderWriterLockSlim_t1158;
// System.Collections.Generic.Queue`1<System.Action>
struct Queue_1_t1219;
/... | 1,331,058 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* execute_main.c :+: :+: :+... | 1,331,059 |
the-stack-v2-dedup | C | #ifndef ICT_SYS_H_
#define ICT_SYS_H_
////////////////////////////// raspi define /////////////////////////////////////////////*/
#define LED 0 //LED GPIO this is Wiring trigger
#define PACKER_DISPENSER_1_SIG 2 //BCM => 27
#define PACKER_DISPENSER_2_SIG 3 //BCM => 22
#define PACKER_DISPENSER_3_SIG 23 //BCM => 1... | 1,331,060 |
the-stack-v2-dedup | C | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/**
@page JiveXML_page JiveXML Package
@author Nikos.Konstantinidis@cern.ch, Eric.Jansen@hef.ru.nl, Juergen.Thomas@cern.ch
@section JiveXML_IntroJiveXML Introduction
This is the core package containing the code for producing the XML eve... | 1,331,061 |
the-stack-v2-dedup | C | // Copyright 2019 AES WBC Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef AES_H_
#define AES_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
void aes128_expand_keys(const uint8_t key[16],
uint32_t roundKe... | 1,331,062 |
the-stack-v2-dedup | C | // <COMPONENT>: os-apis
// <FILE-TYPE>: component public header
/*!
* @defgroup OS_APIS_FILE File
* @brief Contains file related os apis
*/
#ifndef OS_APIS_FILE_H
#define OS_APIS_FILE_H
#include <sys/types.h>
/*! @ingroup OS_APIS_FILE
* File open modes
*/
typedef enum
{
// For File objects ... | 1,331,063 |
the-stack-v2-dedup | C | /*
* Copyright (c) 2004 ITE Technology Corp. All Rights Reserved.
*/
/** @file
* The thread functions.
*
* @author Jim Tan
* @version 1.0
*/
#ifndef PAL_THREAD_H
#define PAL_THREAD_H
#include "async_file/def.h"
#ifdef __cplusplus
extern "C" {
#endif
/** Thread definition */
//typedef void* ... | 1,331,064 |
the-stack-v2-dedup | C | /* ========================================================================
$File: $
$Date: $
$Revision: $
$Creator: Casey Muratori $
$Notice: (C) Copyright 2015 by Molly Rocket, Inc. All Rights Reserved. $
======================================================================== */
#define DEBUG_FRAM... | 1,331,065 |
the-stack-v2-dedup | C | /*
**************************************************
*
*
* 通过Usart1把字库文件烧写到外部Flash
* 操作:
* 1、在串口调试软件中发送写指令,格式如下:{烧写字库起始扇区地址,字库容量大小(字节)} ,{0002,001234567},
* // {和} ---为分隔符,0002 -- 1-4位表示字库起始扇区地址,固定4位长度,不足的前面用0填充,
* // 0012345 --- 6-14位数据表示字库的容量,以字节为单位。
*
*
*************************************************... | 1,331,066 |
the-stack-v2-dedup | C | struct tron
{
int x;
int y;
float r;
};
struct diem
{
int x;
int y;
};
| 1,331,067 |
the-stack-v2-dedup | C | /*
* ramster.h
*
* Peer-to-peer transcendent memory
*
* Copyright (c) 2009-2012, Dan Magenheimer, Oracle Corp.
*/
#ifndef _RAMSTER_RAMSTER_H_
#define _RAMSTER_RAMSTER_H_
#include "../tmem.h"
enum ramster_remotify_op {
RAMSTER_REMOTIFY_FLUSH_PAGE,
RAMSTER_REMOTIFY_FLUSH_OBJ,
};
struct ramster_remotify_hdr {
... | 1,331,068 |
the-stack-v2-dedup | C | #include "elevator.h"
void init(info *elev)
{
elev->current = 1;
elev->door = 0; //closed
elev->state = 0; //stop
}
| 1,331,069 |
the-stack-v2-dedup | C | #ifndef _INIT_NETX5_H
#define _INIT_NETX5_H
#include <stdbool.h>
void init_netx5(bool fPhyEnable);
#endif /* _INIT_NETX5_H */
| 1,331,070 |
the-stack-v2-dedup | C | /*
** EPITECH PROJECT, 2019
** isalpha
** File description:
** check if the string only contains alpha
*/
int my_str_isalpha(char const *str)
{
int pos = 0;
while (str[pos] != '\0') {
if ((str[pos] < 'a' || str[pos] > 'z') &&
(str[pos] < 'A' || str[pos] > 'Z'))
return (0);
... | 1,331,071 |
the-stack-v2-dedup | C | /*
*********************************************************************************************************
* MICIRUM BOARD SUPPORT PACKAGE
*
* (c) Copyright 2015; Micrium, Inc.; Weston, FL
*
* All rights reserved. Protected by internat... | 1,331,072 |
the-stack-v2-dedup | C | #include "../include/passion.h"
enum ps_status conf(struct ps_config *t)
{
t->window.width = 1280;
t->window.height = 720;
t->window.resizable = true;
return PS_STATUS_SUCCESS;
}
enum ps_status load(struct ps_passion *this, int argc, char **argv)
{
ps_graphics_set_point_size(th... | 1,331,073 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <time.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/prctl.h>
#include <sys/types.h>
#include <sys/wait.h>
char * wait_msg = "Oczekuję na CTRL+Z - kontynuacja albo CTR+C - zakończenie programu.";
char * sigint_msg = "Odebrano sygnał SIGINT.";
int glob_show = 1;... | 1,331,074 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_is_sort.c :+: :+: :+: ... | 1,331,075 |
the-stack-v2-dedup | C | /*
*
* Team Id: eYRC#2467-WM
* Modified By- Ankit Kumar
* Filename: Buzzer_beep.h
* Theme: Warehouse Management
* Functions: buzzer_on(),buzzer_off(),buzzer_pin_config(),init_buzzer()
* Global Variables: NULL
*
*/
/**************************************************************************
* Func... | 1,331,076 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* field.c :+: :+: :+: ... | 1,331,077 |
the-stack-v2-dedup | C | /* Author: ALyssa Zepeda
* Partner(s) Name:
* Lab Section:
* Assignment: Lab #5 Exercise #1
* Exercise Description: https://youtu.be/jAP9L-eh0Y0
*
* I acknowledge all content contained herein, excluding template or example
* code, is my own original work.
*/
#include <avr/io.h>
#ifdef _SIMULATE_
#include "si... | 1,331,078 |
the-stack-v2-dedup | C | #include "FunctionFit.h"
#include <stdio.h>
#include <stdlib.h>
#include "math.h"
void polyfit(int n, double *x, double *y, int poly_n, double p[]);
void gauss_solve(int n,double A[],double x[],double b[]);
//函数功能:进行最小二乘曲线拟合(拟合y=a0+a1*x+a2*x^2+……+a[poly_n]*x^poly_n),计算出对应的系数a?
//参数说明:
// n: 给定数据点的个数
// ... | 1,331,079 |
the-stack-v2-dedup | C | #include <stdio.h>
#define CAR_RATE 20.5
#define TRUCK_RATE 31
#define CREDIT -25
int main()
{
int cars, trucks;
float total = 0.0;
cars = 30;
trucks = 7;
//Add everything together
total = CAR_RATE / 0; //* cars + TRUCK_RATE * trucks;
printf("%f", total + CREDIT);
printf("%s", "\n");
total = -5 % -2... | 1,331,080 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{
int octal_num,binary1[100],binary2[100],i=0,count=0,j=0;
printf("*****OCTAL NUMBERS HAVE THEIR DIGITS RANGING BETWEEN 0-7.SO CARE SHOULD BE TAKEN BY THE USER WHILE THEY INPUT FOR THE SAME*****\n");
printf("ENTER OCTAL NUMBER TO BE CONVERTED TO BINARY: ");
scanf("%d",... | 1,331,081 |
the-stack-v2-dedup | C | /*++
Module Name:
CONSPAWN.C
Description:
Serves as an intermediate stub Win32 console application to
avoid a hanging pipe when redirecting 16-bit console based
programs (including MS-DOS console based programs and batch
files) on Window 9... | 1,331,082 |
the-stack-v2-dedup | C | #include "Clouseau.h"
#include <dlfcn.h>
#include <execinfo.h>
#include <Ecore_Con_Eet.h>
#include <Edje.h>
#include <Evas.h>
#include <Elementary.h>
#include <Ecore_X.h>
#include "clouseau_private.h"
static Eina_Bool _elm_is_init = EINA_FALSE;
static const char *_my_app_name = NULL;
static void
libclouseau_item_ad... | 1,331,083 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* health.c :+: :+: :+: ... | 1,331,084 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int i = 5;
int j = 7;
printf("(i++) + j = %d\n ", (i++)+j);
printf("i = %d\n", i);
printf("(++i) + j = %d\n ", (++i)+j);
printf("i = %d\n", i);
}
| 1,331,085 |
the-stack-v2-dedup | C | /*
* Copyright 2010, Maxim Sokhatsky
* Distributed under the terms of the MIT License.
*/
#ifndef BASE_64_H
#define BASE_64_H
char *Base64Encode(const char *src, int len, char *dest, int size);
#endif // _BASE_64_H
| 1,331,086 |
the-stack-v2-dedup | C | #ifndef _DEVICE_MEMORY_MAP_H_
#define _DEVICE_MEMORY_MAP_H_
#include <Library/ArmLib.h>
#define MAX_ARM_MEMORY_REGION_DESCRIPTOR_COUNT 95
/* Below flag is used for system memory */
#define SYSTEM_MEMORY_RESOURCE_ATTR_CAPABILITIES \
EFI_RESOURCE_ATTRIBUTE_PRESENT | EFI_RESOURCE_ATTRIBU... | 1,331,087 |
the-stack-v2-dedup | C | /*
* Standard functions impl file
*
* Defines functions for use in Insense
*
* @author jonl
*
*/
#include "StandardFunctions.h"
#include "events.h"
#include "GlobalVars.h"
//static bool success;
float avgRealArray_proc(void *this, void *handler, IArrayPNTR rarray) {
float avg = 0.0;
int i;
for( i=0; ... | 1,331,088 |
the-stack-v2-dedup | C | #include <stdint.h>
#define MAX_SIZE 32
struct In {uint16_t input[MAX_SIZE];};
struct Out {uint16_t output[MAX_SIZE];};
void compute(struct In *input, struct Out *output){
int left, right, rend;
int i, j, k, m;
int interval;
for (interval = 1; interval < MAX_SIZE; interval *= 2 ) {
for (left = 0; left + ... | 1,331,089 |
the-stack-v2-dedup | C | /*
* x86 condition code helpers
*
* Copyright (c) 2008 Fabrice Bellard
*
* This 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 of the License, or (at your option) a... | 1,331,090 |
the-stack-v2-dedup | C |
#ifndef __TBL_AUTH_CFG_DEFINE_H__
#define __TBL_AUTH_CFG_DEFINE_H__
/* TBL_AUTH_CFG field defines */
typedef enum
{
TBL_AUTH_CFG_FLD_SECRET = 0 , /* RW */
TBL_AUTH_CFG_FLD_ENC_SECRET = 1 , /* RW */
TBL_AUTH_CFG_FLD_TIMEOUT = 2 , /* RW */
TBL_AUTH_CFG_FLD_RETRIES... | 1,331,091 |
the-stack-v2-dedup | C | /* Copyright (c) 2007 Eric McCorkle. All rights reserved. */
#ifndef MALLOC_INTERNAL_H
#define MALLOC_INTERNAL_H
#include "mm_malloc.h"
/*!
* This function initialized the explicitly managed memory system to
* the specified parameters. The only parameter to this system is the
* limit on the size of explicitly m... | 1,331,092 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <time.h>
#include <fcntl.h>
#include "trx.h"
#include <bcm2835.h>
#include "../../mc/lib/rfm12b_defs.h"
#define RFM_IRQ 22 //IRQ GPIO pin.
#define RFM_CE BCM2835_SPI_CS1 //SPI chip select
uint16_t
rf12_xfer(uint16_t cmd)
{
unsigned cha... | 1,331,093 |
the-stack-v2-dedup | C | ///mile nai.
#include <stdio.h>
int main(){
char a[129]="\0";
int i,t,count;
scanf("%d",&t);
while(t--){
a[129]="\0";
count=0;
scanf("%s",a);
for(i=0;i<128;i++){
if(a[i]=='(' || a[i]=='['){
count++;
}
if(a[i]==')' || a[i]==']'){
count-... | 1,331,094 |
the-stack-v2-dedup | C | /*!\file res_loc.c
* Resolver library.
*/
/* ++Copyright++ 1985, 1989, 1993
* -
* Copyright (c) 1985, 1989, 1993
* The 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 t... | 1,331,095 |
the-stack-v2-dedup | C | #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... | 1,331,096 |
the-stack-v2-dedup | C | #pragma once
#ifndef __DEM_TOOLS_D3D9_SHADER_REFLECTION_H__
#define __DEM_TOOLS_D3D9_SHADER_REFLECTION_H__
#include <Data/Dictionary.h>
#include <Data/String.h>
// Code is obtained from
// http://www.gamedev.net/topic/648016-replacement-for-id3dxconstanttable/
// This version has some cosmetic changes and enhancement... | 1,331,097 |
the-stack-v2-dedup | C | #include "region_block.h"
#include "region_cylinder.h"
#include "region_intersect.h"
#include "region_sphere.h"
#include "region_union.h"
| 1,331,098 |
the-stack-v2-dedup | C | /**
* Assignment 1 header file
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
// File IO Functions
/**
* This function is responsible for reading an image file and placing the pixel data from the file into the array image_data
* The function automatically determines whether the ... | 1,331,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.