source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The SaruulCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SaruulCoin_SaruulCoinCONSENSUS_H
#define SaruulCoin_SaruulCoinCONSENSU... | 1,329,700 |
the-stack-v2-dedup | C | //============================================================================
//
// tokenize.h
//
// Copyright (c) 2007, Ensemble Studios
//
//============================================================================
#include "xcore.h"
#include "containers\dynamicArray.h"
// Straightforward string toke... | 1,329,701 |
the-stack-v2-dedup | C | /**
* @file eip_tools.h
* @brief Header file for eip_tools.c
*
* \par
* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
* \par
*/
#ifndef EIP_TOOLS_H_
#define EIP_TOOLS_H_
/* ========================================================================== */
/* Include ... | 1,329,702 |
the-stack-v2-dedup | C | /*
** EPITECH PROJECT, 2017
** my_runner
** File description:
** null
*/
#include "my_runner.h"
void add_type(game_object_t **my_object)
{
my_object[0]->type = BACKGROUND;
my_object[1]->type = MIDDLE;
my_object[2]->type = FRONT;
my_object[3]->type = RUN;
my_object[4]->type = TREE;
}
| 1,329,703 |
the-stack-v2-dedup | C | /*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... | 1,329,704 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<math.h>
int main()
{
int n;
scanf("%d",&n);
int array[n][n],temp,i,j,k;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
scanf("%d",&array[i][j]);
}
}
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
for(k=0;k<n-j-1;k++)
... | 1,329,705 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <limits.h>
int main()
{
char ch; //char型变量用于表示字符,但其本质依然是8位二进制数,也可以当一个迷你int
printf("Enter a character.\n");
scanf("%c", &ch); //对于char,我们需要使用格式符%c
printf("The code for %c is %d.\n",ch,ch); //以%c形式输出ch会打印其字符,而以%d形式输出ch会打印其ASCII码
printf("Let's see what happen if we add 1 to the character... | 1,329,706 |
the-stack-v2-dedup | C | /** -----------------------------------------------
* @file tokenList.c
* IFJ prekladac jazyka IFJ20
* Tým 101:
* @author Jaksik, Ales <xjaksi01>
* ------------------------------------------------
* @author Vlasakova, Nela <xvlasa14>
* @author Belohlavek, Jan <xbeloh8>
* @author Mraz, Filip <xmrazf00>
* --... | 1,329,707 |
the-stack-v2-dedup | C | #include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "array/array.h"
#include "semantics.h"
#include "eval.h"
#include "parse.h"
#include "package.h"
#include "polymorph.h"
#include "types.h"
#include "typechecking.h"
// TODO: do this better
static AstImpl *in_impl = NULL;
static Ast **global_fn_decls... | 1,329,708 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#define BUFFER_SIZE 300
typedef struct node {
int i;
struct node *next;
}Node;
node *top;
int count;
bool is_empty() {
return top == NULL;
}
void push(int i) {
if (top == NULL) {
top= (Node*)malloc(sizeof(Node));
top->i = i;
... | 1,329,709 |
the-stack-v2-dedup | C | /*****************************************************************************
Copyright 2016-2017 Broadcom Limited. All rights reserved.
This program is the proprietary software of Broadcom Limited and/or its
licensors, and may only be used, duplicated, modified or distributed pursuant
to the terms and condition... | 1,329,710 |
the-stack-v2-dedup | C | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <assert.h>
#include <exception>
// System.Array/ArrayReadOnlyList`1<System.Object>
struct ArrayReadOnlyList_1_t2389;
// System.Object[]
struct ObjectU5BU5D_t151;
// System.Co... | 1,329,711 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "yuv.h"
int YUV_RGBTOYUV(YUV_Color *dst, RGB888 *src)
{
}
int YUV_420spDrawLine(unsigned char *sp, int width, int height)
{
int len = width * height, i, j;
unsigned char *Y, *UV;
Y = sp;
UV = sp + len;... | 1,329,712 |
the-stack-v2-dedup | C | #ifndef _D07R0102_DEF_H_
#define _D07R0102_DEF_H_
//スクリプトデータID定義
#define SCRID_D07R0102_FLAG_CHANGE (1)
#define SCRID_D07R0102_BOARD (2)
#define SCRID_D07R0102_DATA_MAX (2) //最大数
#endif //_D07R0102_DEF_H_
| 1,329,713 |
the-stack-v2-dedup | C | /**
* @brief Transforms a string according to the given function pointer
* @note for transforming a string with ctype functions use j_strTransform_int
* @param [inout] str string to modify
* @param [in] func functoin to apply on the string
*/
void j_strTransform(char *str, char (*func)(char));
/**
* @brief Trans... | 1,329,714 |
the-stack-v2-dedup | C | #include "utilities.h"
enum mode_t mode = IDLE;
void set_mode(enum mode_t new_mode){
// sets the mode by a mode enum
mode = new_mode;
}
int get_mode(){
// gets the mode as an integer
// this should match up with the MATLAB code
switch (mode) {
case IDLE:
return 1;
case... | 1,329,715 |
the-stack-v2-dedup | C | #include <SDL2/SDL_ttf.h>
#include <locale.h> //Used to set locale for score separator
#include <SDL2/SDL_image.h>
#include "fonts.h"
//#define SCORE_SEPARATOR ','
#define MAX_FONTS 255
#define CFG_FONT_FILE "fonts.cfg"
TTF_Font *fonts[255];
SDL_Color textColor;
SDL_DisplayMode videomode;
SDL_Window *window;
SDL_Re... | 1,329,716 |
the-stack-v2-dedup | C | /*
*Copyright (c) 2000-2002 Viola Systems Ltd.
*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 ... | 1,329,717 |
the-stack-v2-dedup | C | #include <msp430.h>
//#include <libtimer.h>
#include <lcdutils.h>
#include <lcddraw.h>
#include "triforce.h"
static int up, down = 0;
void drawTriangle() {
int i, j;
int k = 0, redraw = 0;
clearScreen(COLOR_WHITE);
__delay_cycles(5000000);
clearScreen(COLOR_BLACK);
int x = 10;
int y = 85;
for (j = 0; ... | 1,329,718 |
the-stack-v2-dedup | C | #define UNICODE
#define _UNICODE
#include <Python.h>
#include <windows.h>
int
main()
{
TCHAR program[MAX_PATH];
LPWSTR *argv;
int argc;
PyObject *runpy;
PyObject *ret;
argv = CommandLineToArgvW(GetCommandLineW(), &argc);
GetModuleFileName(NULL, program, MAX_PATH);
Py_SetProgramName(pro... | 1,329,719 |
the-stack-v2-dedup | C | #include "cpu/exec/helper.h"
#define DATA_BYTE 2
#include "movzw-template.h"
#undef DATA_BYTE
#define DATA_BYTE 4
#include "movzw-template.h"
#undef DATA_BYTE
make_helper_v(movzw_rm2r) | 1,329,720 |
the-stack-v2-dedup | C | #ifndef CLASS_H
#define CLASS_H
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_NONSTDC_NO_DEPRECATE
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
typedef struct ClassStructure {
char* name;
int class;
int health;
int strenght;
int charisma;
int defense;
}ClassStructure;
ClassStructure* CreatePlayer();
void Pr... | 1,329,721 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_padzero.c :+: :+: :+: ... | 1,329,722 |
the-stack-v2-dedup | C | #include <stdio.h>
void mnoz(double a, double b) {
printf("Wynik mnozenia: %lf\n", a * b);
}
void dodaj(double a, double b) {
printf("Wynik dodawania: %lf\n", a + b);
}
void odejmij(double a, double b) {
printf("Wynik odejmowania: %lf\n", a - b);
}
void dziel(double a, double b) {
if (b == 0.0) ... | 1,329,723 |
the-stack-v2-dedup | C | /*
* Licensed under GPLv2, see file LICENSE in this source tree.
*
* Based on nanotop.c from floppyfw project
*
* Contact me: vda.linux@googlemail.com
*/
//config:config NMETER
//config: bool "nmeter"
//config: default y
//config: help
//config: Prints selected system stats continuously, one line per update.
... | 1,329,724 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h> //Necessária para fazer operações com strings
#define STRING_SIZE 100
/*
* Uma string é na verdade um array de caracteres (Ex: "Hello World" -> ['H','e','l','l','o',' ','W','o','r','l','d','\o'] )
* OBS: Ao final de toda string existe um carater especial '\... | 1,329,725 |
the-stack-v2-dedup | C | #include "include/common.h"
#include "include/trie.h"
void int2char(unsigned int x, unsigned char* buf) {
int i = 0;
for (; i < 4 ; ++i) {
buf[i] = x % 256;
x /= 256;
}
}
void insert(Trie* trie, unsigned char* buf, int id) {
int p = 0;
int i = 0;
for (; i < 4; ++i) {
if (trie->son[p][buf[i]] == -1) {
... | 1,329,726 |
the-stack-v2-dedup | C | /*
* Basic OLED SSD1306 display driver
*/
#include "NeoPixel.h"
#include <string.h>
#include <stdlib.h>
uint8_t _x; // cursor column
uint32_t _bgColor = 0; // background color
uint8_t buffer[3*N_LED + 3*NEO_EXT*8]; // G, R, B, buffer + extension char
uint8_t *_end = buffer + sizeof(buffer... | 1,329,727 |
the-stack-v2-dedup | C | #include <stdio.h>
void main()
{
int a,temp=0,i;
scanf("%d",&a);
for(i=2;i<a;i++)
{
if(a%i==0)
{
temp=1;
}
}
if(temp==0)
{
printf("Yes");
}
else
{
printf("No");
}
getch();
}
| 1,329,728 |
the-stack-v2-dedup | C | /******************************************
*******************************************
*** Ariel Levin ***
*** ariel.lvn89@gmail.com ***
*** http://about.me/ariel.levin ***
*******************************************
******************************************/
#include "global.h"
void printPath(int path[... | 1,329,729 |
the-stack-v2-dedup | C | #include <stdio.h>
int a = 1;
int extern_function(void);
int static_function(void);
int main(void){
auto int b = 2;
register int c = 3;
printf("%3d\n", extern_function());
printf("%3d%3d%3d\n", a, b, c);
static_function();
static_function();
return 0;
}
| 1,329,730 |
the-stack-v2-dedup | C | /**
******************************************************************************
* @file usb_setup.h
* @author zns
* @version V1.0.0
* @date 11-April-2021
* @brief This file contains prototypes for usb setup routine
******************************************************************************
... | 1,329,731 |
the-stack-v2-dedup | C | /*
============================================================================
Name : dht11_app.c
Author : wy
Version :
Copyright : Your copyright notice
Description : dht11应用层
============================================================================
*/
#include "includes.h"
taskManageTyp... | 1,329,732 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#if !defined(M_PI)
# define M_PI (3.1415926535897932384626433832795)
#endif
/*Nadenau computes the transfer function of the HVS with respect to a
particular wavelet coefficient by mapping a small region of the frequency
domain to that r... | 1,329,733 |
the-stack-v2-dedup | C | #define PORTABLE_VERSION_TEXT "0.2.1-pre"
#define PORTABLE_VERSION_MAJOR 0
#define PORTABLE_VERSION_MINOR 2
#define PORTABLE_VERSION_PATCH 1
/* 1 or 0 */
#define PORTABLE_VERSION_RELEASED 0
| 1,329,734 |
the-stack-v2-dedup | C | //https://stepik.org/lesson/307320/step/5?unit=289408
#include <stdio.h>
#include <stdlib.h>
//a > b
//НОК(a, b)=a : НОД(a, b) * b
long gcd(long a, long b)
{
if (b == 0)
return a;
return (gcd(b, a % b));
}
long max(long a, long b)
{
if (a > b)
return (a);
return (b);
}
long min(long a, long b)
{
if (a < b... | 1,329,735 |
the-stack-v2-dedup | C | /**********************************************************************************************************
Program Description:
Lab Test 3 -
...
Author:
Eoghan Byrne
C17315336
Editor Used: Compiler Used:
Sublime Text Xcode
Version 3.0 ... | 1,329,736 |
the-stack-v2-dedup | C | const unsigned char gImage_badapple 3372[8] = { /* 0X42,0X01,0X08,0X00,0X06,0X00, */
0X00,0X00,0X30,0X48,0X48,0X30,0X00,0X00,};
| 1,329,737 |
the-stack-v2-dedup | C | /* This file is generated automatically by GUI tool
this file come from
"F:\linux\public_tree_2830_hht_normini\project\tv\tools\2309GUI Tool haier_atv\workouts\imgs\atv_IMG_ID_main_menu_time.png"
*/
static PREFIXCONST unsigned char POSTCONST atv_IMG_ID_main_menu_time_english[719]=
{
0x89,0x50,0x4e,0x47,0x0d,0... | 1,329,738 |
the-stack-v2-dedup | C | #include <stdio.h>
#include "hisdk_log.h"
#include "argtable3.h"
struct arg_lit *help;
struct arg_lit *version;
struct arg_lit *debug;
struct arg_file *logfile;
struct arg_end *end;
int test_func1()
{
HISDK_LOG_INFO(LOG_DEBUG, "%s", "hello world!!");
return 0;
}
int main(int argc, char *argv[... | 1,329,739 |
the-stack-v2-dedup | C | #ifndef PIXEL_IMPROC_BOXFILTER_H
#define PIXEL_IMPROC_BOXFILTER_H
#endif | 1,329,740 |
the-stack-v2-dedup | C | /* $Copyright: $
* Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991
* Sequent Computer Systems, Inc. All rights reserved.
*
* This software is furnished under a license and may be used
* only in accordance with the terms of that license and with the
* inclusion of the above copyright notice. Thi... | 1,329,741 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXLINE 1024
#define IC 4
char* internal_commands[]={"pwd","ls","bash","ps"};
char* external_commands[]={"cat","man","echo","ls","mkdir"};
void initialize_shell()
{
char cwd[MAXLINE];
char* username = getenv("USER");
getcwd(cwd, sizeof(cwd)... | 1,329,742 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(){
int start = 0;
int end = 20;
int size = (start + end)/2;
int num[size];
int a = 0;
for(int i = start; i <= end; i++){
if(i % 2 == 0){
num [a] = i;
a++;
}
}
for (int i = 1 ; i < size; i++){
printf("%d\n", num[i]);
}
return 0;
}
| 1,329,743 |
the-stack-v2-dedup | C | #define RTree_cxx
#include "RTree.h"
#include <TH2.h>
#include <TStyle.h>
#include <TCanvas.h>
#include "macros/junews/lostleptons/plotting.h"
#include "macros/junews/lostleptons/utils.h"
#include "macros/junews/lostleptons/RatioError.h"
void RTree::MakeMHTPDFs(TString outdir) {
//TFile outfile(outdir+"closure/ll_PD... | 1,329,744 |
the-stack-v2-dedup | C | #include "lists.h"
#include <stdlib.h>
/**
* find_listint_loop - Finds the loop in a linked list.
* @head: Pointer to list.
* Return: Address of node where the loop starts, or NULL if there is no loop.
*/
listint_t *find_listint_loop(listint_t *head)
{
if (!head)
return (0);
while (1)
{
if (head->next >= head |... | 1,329,745 |
the-stack-v2-dedup | C | #include<stdio.h>
main()
{
int num,i,c;
printf("enter the nu:");
scanf("%d",&num);
for(i=1,c=0;i<=num;i++)
{
if(num%i==0)
c++;
}
if(c==2)
printf("Prime\n");
else
printf("not prime\n");
}
| 1,329,746 |
the-stack-v2-dedup | C | /**
* Apple Keyboard Bridge https://github.com/andantissimo/Apple-Keyboard-Bridge
*/
#pragma once
typedef System::UInt32 DWORD, ULONG, UINT;
typedef System::UInt16 WORD, USHORT;
typedef System::Byte BYTE;
typedef System::Int32 BOOL;
typedef System::IntPtr HANDLE, HWND;
typedef System::IntPtr LRESULT, WP... | 1,329,747 |
the-stack-v2-dedup | C | #ifndef __89YY_DELAY__
#define __89YY_DELAY__
#include "stm32f10x.h"
void Delay_Init(void);
void Delay_ms(u32);
void Delay_us(u32);
void Delay_ms_Lazy(u32);
void Delay_us_Lazy(u32);
void Delay_ms_Dosth(u32, void(*)());
#endif
| 1,329,748 |
the-stack-v2-dedup | C | #include <stdio.h>
#include "inc_and_square.h"
int main(void) {
int num = 3;
int *v1 = #
int v2 = 2;
int res = inc_and_square(v1, v2);
printf("Resultado é: %d ", res);
return 0;
}
| 1,329,749 |
the-stack-v2-dedup | C | /**
* @brief futex implementation for win32
* @author Thomas Atwood (tatwood.net)
* @date 2011
* @copyright unlicense / public domain
****************************************************************************/
// only compile when included by futex.c
#ifdef taa_FUTEX_C_
#include <taa/futex.h>
#includ... | 1,329,750 |
the-stack-v2-dedup | C | /* SPDX-License-Identifier: MIT
*
* 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, ... | 1,329,751 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memcmp.c :+: :+: :+: ... | 1,329,752 |
the-stack-v2-dedup | C | /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "i... | 1,329,753 |
the-stack-v2-dedup | C | /home/oide/SAD/oldsad/contrib/gdtoa/strtoIdd.c | 1,329,754 |
the-stack-v2-dedup | C | #include <semaphore.h>
#include <pthread.h>
#include <stdlib.h>
#ifndef NB_PHILOSOPHES
#error "Le paramètre de compilation NB_PHILOSOPHES doit être spécifié"
#endif // NB_PHILOSOPHES
#ifndef NB_MANGE
#error "Le paramètre de compilation NB_MANGE doit être spécifié"
#endif // NB_MANGE
#include "Philosophe.h"
#... | 1,329,755 |
the-stack-v2-dedup | C | /** Rotinas de leituras
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
| 1,329,756 |
the-stack-v2-dedup | C | // Room: "/d/city/street1.c
inherit ROOM;
void create()
{
set("short", "京师东街");
set("long", @LONG
这里是京师东街的北段。往北走有一个大院子,院里立着根老高
老高的旗杆,上书一个斗大的「镖」字,隔很远就可以看见。镖局的
生意似乎很好,人络绎不绝。西向是庄严的神武门。向南则去向尚书
府和午门。
LONG
);
set("exits", ([
"north": __DIR__"biaoju",
"south": __DIR__"str... | 1,329,757 |
the-stack-v2-dedup | C | /**
******************************************************************************
//UART Sample Project
/**
******************************************************************************
* @file main.c
* @author Ac6
* @version V1.0
* @date 01-December-2013
* @brief Default main function.
****... | 1,329,758 |
the-stack-v2-dedup | C | #include <stdio.h>
int main( void )
{
int file_count;
scanf( "%d", &file_count );
FILE *file_list[ 16 ];
int number_list[ 16 ];
for( int i = 0; i < file_count; ++i )
{
char file_name[ 16 ];
scanf( "%s", file_name );
file_list[ i ] = fopen( file_name, "rb" );
fread( &number_list[ i ], sizeof( int ), 1,... | 1,329,759 |
the-stack-v2-dedup | C | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... | 1,329,760 |
the-stack-v2-dedup | C | // MPEG2RTP.h
#ifndef __NALDACODEER_H__
#define __NALDACODEER_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PACKET_BUFFER_END (unsigned int)0x00000000
#define MAX_RTP_PKT_LENGTH 1360
#define H264 96
struct RTP_FIXED_HEADER
{
/**//* byte 0 */
unsigned cha... | 1,329,761 |
the-stack-v2-dedup | C | #ifndef _SL_MESSAGE_QUEUE_H
#define _SL_MESSAGE_QUEUE_H
#include <pthread.h>
#include "sl_list.h"
struct sl_message_queue {
struct list_head msg_head;
pthread_mutex_t msg_mutex; /* 用于线程队列互斥锁 */
};
struct sl_messgae {
struct list_head msg_list;
int type; /* 消息类型 */
... | 1,329,762 |
the-stack-v2-dedup | C | #ifndef SERAILIZER_H
#define SERAILIZER_H
#include <stdio.h>
#include <stdlib.h>
#include <gsl/gsl_block.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include "exception.h"
typedef struct {
size_t s1;
size_t s2;
} sgeneral_header;
typedef struct {
double* data;
} sbody;
int serialize_m( gsl_matri... | 1,329,763 |
the-stack-v2-dedup | C | /*
The nForth language interpreter
Copyright (C) 2010 Andrew Zabolotny <zap@cobra.ru>
Interpreter core
*/
#include "nf-support.h"
NF_RAM nf_context_t *nf_ctx;
NF_RAM nf_global_state_t nf_global;
NF_EEPROM nf_global_state_t nf_global_save =
{
// 0xffff means the state is uninitialized
.dap = 0xfff... | 1,329,764 |
the-stack-v2-dedup | C | /*
用于创建task
*/
#define APP_FREE_GLOBAL
#include "app_freertos.h"
#include "global.h"
#include "mpu6050.h"
#include "rtc.h"
#include "ble_date.h"
#define DATE_TIMER_TICKS 1000
#define DATE_TIMER_WAIT 2 //消息队列已满下,等待多少个tick
//实例化timer handle
static TimerHandle_t m_date_timer;
static void date_timerout_... | 1,329,765 |
the-stack-v2-dedup | C | /* Informativos */
#define MODO_DE_USO "Modo de usar:\n\t ./montar arquivo_entrada [nome_saida_mapa_de_memoria.hex]\n"
#define PROCESSANDO_ARQUIVO "Processando %s\n"
#define MAPA_SALVO "Mapa de memoria salvo em %s\n"
/* Alertas */
#define SOBRE_ESCRITA_DE_ENDERECO "[ALERTA] Enderco de memoria %03X fo... | 1,329,766 |
the-stack-v2-dedup | C | #if 0
/**************************************************************************************************/
/* */
/* Gestion de la table de Parametres */
/* */
/**********************************************************************************************... | 1,329,767 |
the-stack-v2-dedup | C | /*
* Unit tests for state.c
* Run ./memory_test
*/
#include <stdio.h>
#include "global.h"
#include "print.h"
#include "state.h"
#include "testutils.h"
#include "utils.h"
static void test_reg_operations() {
/*
* Testing get_reg(word_t reg_no) and set_reg(word_t reg_no, word_t value):
* Test if the register... | 1,329,768 |
the-stack-v2-dedup | C | /***
Write a function that receives a floating point value x and returns it as a value rounded to two nearest decimal place.
For example ,the value 123.4567 will be rounded to 123.46(Hint:Seek help of one of the math functions available in math library).
****/
#include<stdio.h>
#include<math.h>
int dec_num(float a);
v... | 1,329,769 |
the-stack-v2-dedup | C | #include <stdio.h>
#include "board.h"
#include "pin_mux.h"
#include "clock_config.h"
#include "MK64F12.h"
#include "fsl_debug_console.h"
#include "P_Controller.h"
#include "pixy2.h"
#include "UART3_d.h"
int modeValue1; //0 for cone, 1 for line
float thisU;
float thisE;// send PWM every 20 ms
int turnCoun... | 1,329,770 |
the-stack-v2-dedup | C | /*
//실수형 데이터 표현 최소값과 최대값 상수
//float.h
//실수형 최소값 최대값
//float FLT_MIN FLT_MAX
//double DBL_MIN DBL_MAX
//long double LDBL_MIN LDBL_MAX
#include <stdio.h>
#include <float.h>
int main(void){
printf("float의 최소값: %e, 최대값: %e\n", FLT_MIN, FLT_MAX);
printf("double의 최소값: %e, 최대값: %e\n", DBL_MIN, DBL_MAX);
printf(... | 1,329,771 |
the-stack-v2-dedup | C | #include "stm32f10x.h"
#include "gpio.h"
#include "enc28j60.h"
#include "spi.h"
#include "uart.h"
#include "net.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
extern uint8_t mac_addr[6];
extern uint8_t ip_addr[4];
extern enc28_frame frame;
void USART1_IRQHandler(void)
{
}
void EXTI0_IRQHandler(void... | 1,329,772 |
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,329,773 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <time.h>
#define N 512
int main(int argc, const char *argv[])
{
time_t s;
struct tm *t;
char date[N] = {0};
time(&s);
t = localtime(&s);
#if 0
sprintf(date, "%d-%d-%d %d:%d:%d",t->tm_year+1900, t->tm_mon+1,\
t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec);
printf("%s\n",date);
#e... | 1,329,774 |
the-stack-v2-dedup | C | #ifndef __MOVIE_H
#define __MOVIE_H
//#include <stm32f10x_lib.h>
#include "sys.h"
//////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任何用途
//Mini STM32开发板-扩展实验5
//OLED动画显示 代码
//正点原子@ALIENTEK
//技术论坛:www.openedv.com
//修改日期:2010/8/22
//版本:V1.0
//版权所有,盗版必究。
//... | 1,329,775 |
the-stack-v2-dedup | C | int asc(int,int);
| 1,329,776 |
the-stack-v2-dedup | C | #include "stdio.h"
int main()
{
int i,j;
char s1[10],s2[10];
for(j=0;j<10;j++)
{
s2[j]='\0';
}
printf("请输入字符串s1(不多于10个英文字符):\n");
gets(s1);
for(i=0;i<10 && s1[i]!='\0';i++)
{
s2[i]=s1[i];
}
printf("复制后的字符串s2为:%s\n",s2);
}
| 1,329,777 |
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,329,778 |
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,329,779 |
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,329,780 |
the-stack-v2-dedup | C | //
// main.c
// program5
//
// Created by Filippo Bertolina on 04/02/2021.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
int x, value;
printf("Enter x: ");
scanf("%d", &x);
value = 3 * x * x * x * x * x + 2 * x * x * x * x - 5 * x * x * x - x * x + 7 * x - 6;
p... | 1,329,781 |
the-stack-v2-dedup | C | /*
* linux/init/main.c
* (C) 1991 Linus Torvalds
*/
/*
* we need this inline - forking from kernel space will result
* in NO COPY ON WRITE (!!!), until an execve is executed. This
* is no problem, but for the stack. This is handled by not letting
* main() use the stack at all after fork(). Thus, no function
... | 1,329,782 |
the-stack-v2-dedup | C | /*
** (R)Jicama OS
** Microsoft File Directory Table
** Copyright (C) 2003 DengPingPing
*/
#include <drv/drv.h>
#include <drv/fs.h>
#include "fat.h"
#include <drv/errno.h>
#include <drv/buffer.h>
#include <drv/log.h>
int fat_dir_update(file_t* f)
{
file_t fa;
int n;
struct msdos_dir dirent;
inode_t *... | 1,329,783 |
the-stack-v2-dedup | C | #ifndef __ETHER_GLFW_DRIVER_H__
#define __ETHER_GLFW_DRIVER_H__
int ether_glfw_driver_display(EtherDisplayCommand cmd, int lparm1, void *pparm1);
int ether_glfw_driver_video(EtherVideoCommand cmd, int lparm1, void *pparm1);
#endif /* __ETHER_GLFW_DRIVER_H__ */
| 1,329,784 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
// Google.ProtocolBuffers.Collections.PopsicleList`1<System.Int32>
struct PopsicleList_1_t2923;
// PacketDistributed
#include "AssemblyU2DCSharp_PacketDistributed.h"
// GC_SPECIALTIME_PAY_REBATE_RANK_REWARD_INFO
struct GC_SPECIALTIME_PAY_REBATE_RANK_REWARD_INFO_t3552 : public PacketDi... | 1,329,785 |
the-stack-v2-dedup | C | #include "imp_pea_bva_para.h"
#include "imp_pea_system.h"
IMP_VOID ipParseAnaystParaData(IpAnalystPara *pstPara )
{
//perimeter parameter
pstPara->stPerimeterPara.s32PerimeterUseMtrend = IMP_ANALYST_PERIMETER_USE_MTREND;
pstPara->stPerimeterPara.s32PerimeterUseBottom = IMP_ANALYST_PERIMETER_USE_BOTTOM;
pst... | 1,329,786 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... | 1,329,787 |
the-stack-v2-dedup | C | #include <stdio.h>
int CountTwo(int); | 1,329,788 |
the-stack-v2-dedup | C | ../../src/lagrangian/LNodeSetData.h | 1,329,789 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_conversion.c :+: :+: :+: ... | 1,329,790 |
the-stack-v2-dedup | C | /*
* Copyright © 2006-2009 SplinterGU (Fenix/Bennugd)
* Copyright © 2002-2006 Fenix Team (Fenix)
* Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix)
*
* This file is part of Bennu - Game Development
*
* Bennu is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gener... | 1,329,791 |
the-stack-v2-dedup | C | #include "lgc.h"
#include <malloc.h>
#include <string.h>
int main() {
lgcImage *img = lgcBlankImage();
char dumm[LGC_BASE_OFFSET] = "Wololo!";
memcpy(&img->unused, &dumm, LGC_BASE_OFFSET);
img->magic = LGC_MAGIC;
img->layers_count = 2;
img->layers = malloc(sizeof(lgcLayer)*2);
img->lay... | 1,329,792 |
the-stack-v2-dedup | C | unsigned char mule_behind_data[6902] =
{
0x64,0x45,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,
0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,... | 1,329,793 |
the-stack-v2-dedup | C | /* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __RADIO_RECEIVE_H
#define __RADIO_RECEIVE_H
#include "ProjectDefs.h"
#define RX_BUF_SIZE 256
#define RX_MIN_SILENCE 1000
#define TSS320_LOW_PULSE_LOWER_LIM 100
#define TSS320_LOW_PULSE_UPPER_LIM 110
#define TSS320_HIGH... | 1,329,794 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <limits.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include "vulns.h"
#define BUF_SIZE 32
/****************** integer ***********************/
// VULN: Stack based, overwrite local buffer
// VULN: Unsigned Integer Wraparound
// VULN: in dest buffer size comparison
... | 1,329,795 |
the-stack-v2-dedup | C | #include<stdio.h>
struct my_file
{
int base;
int exp;
};
int main()
{
int n1,n2;
printf("enter the number of terms of 1st poly\n");
scanf("%d",&n1);
printf("enter the number of terms of 2nd poly\n");
scanf("%d",&n2);
struct my_file poly1[n1],poly2[n2],result[n1*n2];
int i;
printf("enter the terms of 1st poly\... | 1,329,796 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* set_map.c :+: :+: :+: ... | 1,329,797 |
the-stack-v2-dedup | C | /*
2. Write a program which accept one number and position from user and off that bit. Return modified number.
Input : 10 2
Output : 8
*/
#include<stdio.h>
typedef unsigned int UINT;
UINT OffBit(UINT uNo, int iPos)
{
UINT uMask=0Xfffffffe,uResult=0;
if((iPos<1)||(iPos>32))
{
printf("invalid input");
}
if(uN... | 1,329,798 |
the-stack-v2-dedup | C | //
// Charge_Customer_CC_Lv2_Lv3.h
// bluepay-cpp
//
#ifndef __bluepay_cpp__Charge_Customer_CC_Lv2_Lv3__
#define __bluepay_cpp__Charge_Customer_CC_Lv2_Lv3__
#include <stdio.h>
void chargeCustomerCCLv2Lv3();
#endif /* defined(__bluepay_cpp__Charge_Customer_CC_Lv2_Lv3__) */
| 1,329,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.