seq_id
string
text
string
repo_name
string
sub_path
string
file_name
string
file_ext
string
file_size_in_byte
int64
program_lang
string
lang
string
doc_type
string
stars
int64
dataset
string
pt
string
70262497323
// yue-lingshan.c inherit NPC; void create() { object ob; set_name("岳灵珊", ({ "yue lingshan", "yue", "lingshan" }) ); set("nickname", "小师妹"); set("gender", "女性" ); set("age", 17); set("per", 29); set("str", 16); set("con", 24); set("dex", 30); se...
mudchina/xkx100
d/huashan/npc/yue-lingshan.c
yue-lingshan.c
c
1,743
c
en
code
22
github-code
19
15464659721
/* $OpenBSD: isa_machdep.c,v 1.31 2020/09/29 03:06:34 guenther Exp $ */ /* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */ #define ISA_DMA_STATS /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Fou...
openbsd/src
sys/arch/amd64/isa/isa_machdep.c
isa_machdep.c
c
19,418
c
en
code
2,915
github-code
19
41412867699
#include "ipclib.h" #ifndef O_RDONLY # include <fcntl.h> #endif #ifndef O_TRUNC # define O_TRUNC 0 #endif #ifndef O_CREAT # define O_CREAT 0 #endif #ifndef O_APPEND # define O_APPEND 0 #endif #ifdef __GNUG__ #define zapeof(x) ((x)&0377) #endif static String // includes trailing slash dirname_plus(const String& a...
seyko2/cfront-3
libSC/ipc/ipcbuf.c
ipcbuf.c
c
7,102
c
en
code
68
github-code
19
29369417670
#ifndef _KDP_H #define _KDP_H #ifndef __ASSEMBLY__ #ifndef LINKER_SCRIPT #include <linux/rkp.h> #ifdef CONFIG_KDP_NS #include <linux/mount.h> #endif /* uH_RKP Command ID */ /* Add KDP call IDs */ /***************** KDP_CRED *****************/ #define CRED_JAR_RO "cred_jar_ro" #define TSEC_JAR "tsec_jar" #define V...
pascua28/android_kernel_samsung_s20fe
include/linux/kdp.h
kdp.h
h
3,632
c
en
code
11
github-code
19
27006502928
#pragma once #ifndef PT_D3D9_RENDERING_VIEW_VARIABLES_H #define PT_D3D9_RENDERING_VIEW_VARIABLES_H #include "simple_variable_owner.h" #include "matrix4x4f_setters.h" #include "vector3f_setters.h" #include "time_setter.h" #include "animatable_setter.h" #include "pt/d3d9/constant.h" #include "pt/math/plane.h" namespace...
Codarki/Pyrotech_2016
democodebase/pt/d3d9/rendering/view_variables.h
view_variables.h
h
3,920
c
en
code
0
github-code
19
24102728634
/****************************************************************************** * * Cisco Systems, Inc. * * Copyright (c) 2008 by Cisco Systems, Inc. * All rights reserved. * ****************************************************************************** * * File: * * Description: Kernel module basic types. ...
wmanley/cisco-vqe-client
include/utils/kmod/vam_types.kmod.h
vam_types.kmod.h
h
6,749
c
en
code
9
github-code
19
70943645485
#include "menu.h" int salvarCliente(cliente **client){ cliente *lst; FILE *ptArq; lst = *client; ptArq = fopen("DadosClientes.csv", "w"); if(ptArq == NULL){ printf("Erro ao salvar Clientes"); pausa(); return 0; } while(lst != NULL){ ...
augustov7/Trabalho-alg2
ioArquivos.c
ioArquivos.c
c
4,246
c
pt
code
0
github-code
19
1009420092
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include "tagdb.h" /* TOKENS */ #define NULLTOKEN 0 #define END 1 #define ID 2 #define SEPARATOR 3 #define NL 4 #define EQ 5 static char *infile; /* file being parsed */ static char word[128]; static int lineno; /* ---------------- private routines -...
starsareintherose/staden-lg
src/staden/tagdbparse.c
tagdbparse.c
c
6,832
c
en
code
0
github-code
19
32123689928
#include<stdio.h> // First Fibonacci function int fib1(int n){ if (n < 2) return n; else return fib1(n-1)+fib1(n-2); } main(){ int x; x = fib1(8); printf("%d\n",x); }
anoya97/Algorithms
Practicas/practica1/function_fib/fib1.c
fib1.c
c
180
c
uk
code
0
github-code
19
22861707795
#include "lists.h" /** * insert_dnodeint_at_index - insert node at index * @h: linked list * @idx: posisiton to insert * @n: data * Return: address of new node or null if failed */ dlistint_t *insert_dnodeint_at_index(dlistint_t **h, unsigned int idx, int n) { dlistint_t *new_node; dlistint_t *tmp; unsigned i...
sidcarrollworks/holbertonschool-low_level_programming
0x16-doubly_linked_lists/7-insert_dnodeint.c
7-insert_dnodeint.c
c
859
c
en
code
0
github-code
19
30484858368
#include<stdio.h> #include<math.h> #include<time.h> int main(){ int n, massiv[10] ; printf("son=",n); scanf("%d",&n); for(int i=n; i<10; i+=2){ printf("%d\n",n); } if(n<=10&&n>=10) printf("%d",n); return 0; }
muhammadyusuf05/neyron-tizimi
funksiya-19.c
funksiya-19.c
c
230
c
uk
code
0
github-code
19
19629067469
#ifndef MERGESORT_H #define MERGESORT_H #include <stack> using namespace std; template<typename T> class MergeSort { private: //private member stack<T*> pointers; public: //public methods void sort(T arr[], int size); ~MergeSort(); private: //private methods T* merge(T* left, T* right, int sizeLeft, int ...
lchavez287/eecs_268
Lab08/MergeSort.h
MergeSort.h
h
400
c
en
code
0
github-code
19
75070506284
/* * libInstPatch * Copyright (C) 1999-2014 Element Green <element@elementsofsound.org> * * 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 by the Free Software Foundation; version 2.1 * of the License only. * * T...
deepin-community/libinstpatch
libinstpatch/IpatchSF2File_priv.h
IpatchSF2File_priv.h
h
4,538
c
en
code
0
github-code
19
30794735611
/** * @file mousewheel.h * */ #ifndef MOUSEWHEEL_H #define MOUSEWHEEL_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #ifndef LV_DRV_NO_CONF #ifdef LV_CONF_INCLUDE_SIMPLE #include "lv_drv_conf.h" #else #include "../../lv_drv_conf.h" #endif #endif #if USE_M...
peng-zhihui/HoloCubic
3.Software/LvglSimulator/vs2019_proj/lv_drivers/indev/mousewheel.h
mousewheel.h
h
1,451
c
en
code
5,621
github-code
19
39265860420
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> /* ULOHA 6.1 int main() { char riadok[258]; int length = 1; while (length != 0) { gets(riadok); length = strlen(riadok); for (int i = 0; i < length; i++) { if (riadok[i] == '*') {...
Arman148/C-Exercises
CV_6/CV_6/Source.c
Source.c
c
1,708
c
en
code
0
github-code
19
18339723649
#include "Red.h" ///// ´ÙµÈµí CRed::CRed(void) { } CRed::~CRed(void) { } bool CRed::MissionTest(_us (*img)[256]){ return false; } TSEND CRed::Missioning(_us (*img)[256], int now){ switch(now){ case 0: m_send = Step1(img); break; case 1: m_send = Step2(img); break; } return m_send; } TSEND CRed::Ste...
JunHyeongJeon/SoCRobotWar
Soc_Cam/Red.c
Red.c
c
1,233
c
en
code
0
github-code
19
38815527612
#include<stdio.h> main() { int intV=0; char charV='a'; float floatV=3.14; int *pInt=&intV; char *pChar=&charV; float *pFloat=&floatV; *pInt=13; printf("%d", intV); printf("\n%d", pInt); *pChar='b'; printf("\n%c", charV); printf("\n%d", pChar); *pFloat=2.23; printf("\n%.2f", flo...
Reikonz/CLearning
CECS121/InClass6.c
InClass6.c
c
359
c
uk
code
0
github-code
19
2258908955
// // AiyaGPUImageTrackFilter.h // AiyaCameraSDK // // Created by 汪洋 on 2016/10/27. // Copyright © 2016年 深圳哎吖科技. All rights reserved. // #import "AYGPUImageFilter.h" #import "AiyaCameraEffect.h" @interface AiyaGPUImageTrackFilter : NSObject <AYGPUImageInput> - (id)initWithAiyaCameraEffect:(AiyaCameraEffect *)cam...
qingcai518/MySceneKit
libs/Aiya/AiyaCameraSDK.framework/Headers/AiyaGPUImageTrackFilter.h
AiyaGPUImageTrackFilter.h
h
356
c
en
code
1
github-code
19
72217948202
// // Bridge.h // MoneySplit // // Created by Yang Hu on 11/19/15. // Copyright © 2015 Aiqi Liu. All rights reserved. // #ifndef Bridge_h #define Bridge_h #import <EstimoteSDK/EstimoteSDK.h> #endif /* Bridge_h */
yhx189/moneySplit
MoneySplit/Bridge.h
Bridge.h
h
220
c
en
code
0
github-code
19
4283704307
bool isToeplitzMatrix(int** matrix, int matrixRowSize, int *matrixColSizes) { int temp[matrixColSizes[0]]; int i,j; for (i = 1;i < matrixRowSize;i++) { for (j = 1;j < matrixColSizes[0];j++) { if (matrix[i][j] != matrix[i-1][j-1]) return false; } } ...
Merlecmx/leet
lc766.c
lc766.c
c
339
c
en
code
0
github-code
19
39731071803
#pragma once #include "../B/BSExtraData.h" #include "../B/BSPointerHandle.h" #include "../B/BSTArray.h" #include "../E/ExtraDataTypes.h" namespace ConsoleRE { class ExtraFollower : public BSExtraData { public: static constexpr int TypeID = ExtraDataType<ExtraDataTypes::kFollower>; struct FollowerInfo { A...
Backporter/OrbisLibBGS-prod
CSEL/source/E/ExtraFollower.h
ExtraFollower.h
h
625
c
en
code
1
github-code
19
16815601850
// Write a program to pass the elements of an array to a function and check how many numbers are prime. #include <stdio.h> int prime(int a) { for (int i = 2; i <= a / 2; i++) { if (a % i == 0) return 0; } return 1; } void main() { int a, count = 0; printf("How many array ele...
ShreyasAwankar/Orlando-C-assignments
28-Sept-2022/que2.c
que2.c
c
606
c
en
code
0
github-code
19
11094092898
#include "arch.h" #ifdef MMX_COEF_SHA512 #ifdef _OPENMP #include <omp.h> #if defined __XOP__ #define OMP_SCALE 768 /* AMD */ #else #define OMP_SCALE 2048 /* Intel */ #endif #endif #include <string.h> #include "stdint.h" #include "common.h" #include "formats.h" #include "sse-intrinsics....
miguelps/JohnTheRipper
src/rawSHA512_ng_i_fmt.c
rawSHA512_ng_i_fmt.c
c
14,010
c
en
code
null
github-code
19
14926463437
/* * Syslink-IPC for TI OMAP Processors * * Copyright (c) 2008-2010, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of sou...
tpruvot/android_hardware_ti_omap4
syslink/syslink/api/include/Atomic_Ops.h
Atomic_Ops.h
h
6,384
c
en
code
7
github-code
19
32771683860
// // BridgingHeader.h // HipChatStringParser // // Created by Sai Tat Lam on 30/04/2016. // Copyright © 2016 Sai Tat Lam. All rights reserved. // #ifndef BridgingHeader_h #define BridgingHeader_h #import "HCConstants.h" #import "HCObject.h" #import "HCMessage.h" #import "HCLink.h" #import "HCParserFactory.h" #im...
lamsaitat/hip-chat-string-parser-ios
HipChatStringParser/headers/BridgingHeader.h
BridgingHeader.h
h
886
c
en
code
1
github-code
19
44310718789
#include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <string.h> #include <pthread.h> #include <signal.h> #include <semaphore.h> #include <unistd.h> #include <mqueue.h> #include <fcntl.h> #include <time.h> #include <sys/mman.h> #include <sys/stat.h> #include <limits.h> #include <features.h> #define DURAT...
bobocop/fer
szrusv/lab5/generator.c
generator.c
c
3,139
c
en
code
0
github-code
19
70294577963
/*****************************************************/ /* Author : mosad */ /* Version : v01 */ /* date : 5/9/2020 */ /*****************************************************/ #ifndef OS_PRIVATE_H #define OS_PRIVATE_H...
xMosad/STM32-SDK
04 - SERVICE/01 - OS/OS_private.h
OS_private.h
h
637
c
zh
code
9
github-code
19
22376800329
#include <utility> // // Created by Thierry Backes on 20/10/18. // #ifndef PATHTRACER_HITABLE_LIST_H #define PATHTRACER_HITABLE_LIST_H #include <cstdio> #include <iostream> #include <vector> #include "hitable.h" class hitable_list: public hitable{ public: hitable_list() = default; explicit hitable_list(std:...
lyinch/pathtracer
hitable_list.h
hitable_list.h
h
1,837
c
en
code
0
github-code
19
72746853804
/**************************************************************/ /* Low Level Register Access Example */ /* */ /* This example uses low level register functions to read the */ /* offset register of a VXI device at logical address 0....
zsimpson/sdkpub
VXIPNP/WinNT/NIvisa/Examples/C/Vxi-vme/LowReg.c
LowReg.c
c
6,419
c
en
code
13
github-code
19
70151525805
//============================================================================= // "Arduino" example program for Crystalfontz ePaper. // // This project is for the CFAP128296C0-0290 : // // https://www.crystalfontz.com/product/cfap128296d00290 //=======================================================================...
FrankBuss/wifi-epaper
stm32L433-test/cube/test/Src/ePaper_CFAP128296D00290.c
ePaper_CFAP128296D00290.c
c
8,498
c
en
code
13
github-code
19
70263833963
// Room: /d/wuxi/road7.c // Winder 2000/02/22 inherit ROOM; void create() { set("short", "林荫道"); set("long", @LONG 一条不宽的林荫道,两排香樟树在路两边搭起了一个天然的凉蓬, 中间夹杂着一些杨柳树,在风中摇摇荡荡,令人心旷神怡。北面是清 名桥,向南一直通向太湖。西边有一条小道,通向梅村的泰伯庙。 LONG ); set("outdoors", "wuxi"); set("no_clean_up", 0); set("exits", ([ "west" : __DIR__"road8", "so...
mudchina/xkx100
d/wuxi/road7.c
road7.c
c
575
c
zh
code
22
github-code
19
28377178890
// // DetailViewController.h // Fruitmunch // // Created by jrk on 7/12/10. // Copyright 2010 flux forge. All rights reserved. // #pragma oncde #import <UIKit/UIKit.h> #import <StoreKit/StoreKit.h> #import "CocosDenshion.h" #import "CDAudioManager.h" @interface MinyxStoreDetailViewController : UIViewController { ...
kybernetyk/FrameworkV3
Classes/ComponentV3/Runtime/Platforms/iOS/Minyx Store/DetailViewController/MinyxStoreDetailViewController.h
MinyxStoreDetailViewController.h
h
1,502
c
en
code
1
github-code
19
72131459563
void bfs(){ int i; //queue variables int queue[500]; int rear = -1; int front = 0; int queueItemCount = 0; //graph variables //array of vertices struct Vertex* lstVertices[MAX]; //adjace //mark frist node as visited lstVertices[0]->visited = true; //d...
adrian-santos/data-structures
homework6/hw7/bfs.c
bfs.c
c
422
c
en
code
0
github-code
19
29928862273
/* File : aropen.c Author : Richard A. O'Keefe Updated: 12/10/98 Purpose: Reading members of UNIX archive files. SeeAlso: aropen.pl, man 5 ar, man 1 ar Copyright (C) 1987, Quintus Computer Systems, Inc. All rights reserved. This file defines QARopen(+Archive, +Member, -Stream) -> Errno ...
mclumd/Alfred
quintus_prolog/quintus3.5/generic/qplib3.5/library/aropen.c
aropen.c
c
6,148
c
en
code
2
github-code
19
10754760158
#include "primpl.h" #include <sys/timeb.h> struct _MDLock _pr_ioq_lock; HINSTANCE _pr_hInstance = NULL; char * _pr_top_of_task_stack; _PRInterruptTable _pr_interruptTable[] = { { 0 } }; /* *----------------------------------------------------------------------- * * PR...
thalium/icebox
third_party/virtualbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/w16null.c
w16null.c
c
1,468
c
en
code
550
github-code
19
15331493961
#include "defs.h" #include "complaints.h" #include "gdb_assert.h" #include "command.h" #include "gdbcmd.h" extern void _initialize_complaints (void); /* Should each complaint message be self explanatory, or should we assume that a series of complaints is being produced? */ /* case 1: First message of a series th...
openbsd/src
gnu/usr.bin/binutils/gdb/complaints.c
complaints.c
c
8,781
c
en
code
2,915
github-code
19
34397885781
#include <sys/socket.h> #include <arpa/inet.h> #include <sys/types.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> //función para la comunicación con el socket creado int comunicacion(int puerto, char* ip, char *arch); void menu(); void busqueda(int opc); char** archivos; int main(in...
Anne0w0/P2P1
cliente/client.c
client.c
c
6,409
c
es
code
0
github-code
19
20676558928
//output for static keyword #include<stdio.h> void f1() { static int b=0; printf("b = %d\n", b); b++; } int main() { f1(); f1(); f1(); f1(); } /* $ ./static_stack b = 0 b = 1 b = 2 b = 3 */
sonusonali/C-Programs
static_stack.c
static_stack.c
c
213
c
en
code
0
github-code
19
7631368961
#include <stdio.h> #if 1 #include "lua.h" #include "iglobal.h" #include "itable.h" #include "idrv.h" #endif #include <iup.h> //printf("gggg\n"); PrintListItems(IupGetHandle("list_analyze")); static void PrintListItems(Ihandle *e) { char *index = NULL; Itable *it = env(e); while ((index=iupTableNext(it, index)...
ewmailing/IupNext
iup2/test/iuplist/value1.c
value1.c
c
1,998
c
en
code
9
github-code
19
39571710822
#ifndef IXIS_IMCS01_DRIVER_H #define IXIS_IMCS01_DRIVER_H #include <ros/ros.h> #include <sensor_msgs/JointState.h> #include <vector> #include <string> #include <mutex> #include <termios.h> #include "urbtc.h" #include "urobotc.h" #define JOINT_INDEX_REAR_RIGHT 0 #define JOINT_INDEX_REAR_LEFT 1 #define JOINT_INDEX_FR...
CIR-KIT-Unit03/cirkit_unit03_robot
cirkit_unit03_base/include/ixis_imcs01_driver/ixis_imcs01_driver.h
ixis_imcs01_driver.h
h
1,722
c
en
code
0
github-code
19
43323825036
/* ============================================================ * * bao.h * * Martin Kilbinger 2008 * * ============================================================ */ #ifndef __BAO_H #define __BAO_H #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "pmctools/errorlist.h" #include "pm...
CosmoStat/CosmoPMC
wrappers/include/bao.h
bao.h
h
1,410
c
en
code
1
github-code
19
31541345189
/* * This file is part of QtPollyNom. * * QtPollyNom 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. * * QtPollyNom is distribu...
tristhaus/QtPollyNom
BackendTest/testexpressionbuilder.h
testexpressionbuilder.h
h
2,580
c
en
code
0
github-code
19
18556448805
#include "pnal.h" #include "pnet_options.h" #include "options.h" #include "osal_log.h" #include <net/ethernet.h> #include <net/if.h> #include <netpacket/packet.h> #include <sys/ioctl.h> #include <stdlib.h> #include <string.h> struct pnal_eth_handle { pnal_eth_callback_t * callback; void * arg; int socket; ...
rtlabs-com/p-net
src/ports/linux/pnal_eth.c
pnal_eth.c
c
4,191
c
en
code
383
github-code
19
50510396593
#include "graph.h" #include <math.h> // This function initializes an adjacency list for // a graph. // // Note that adj list is an array of """adj_node_t*""" which is passed // in by reference. // That is, you are passing in a pointer (i.e, *) to an array (i.e., *) // of adj_node_t*, which is why list is of type adj...
olivialpannell/school_work
ProgrammingConcepts/CS330/hw04/graph.c
graph.c
c
6,209
c
en
code
0
github-code
19
19309272199
#include <string.h> unsigned char xkey[17] = { 0x6E, 0xC2, 0xE1, 0x2D, 0x05, 0xF8, 0x68, 0x71, 0xAF, 0x76, 0x68, 0xFD, 0xF8, 0x76, 0xA3, 0x82, 0x00 }; int seed = 0x1337; int rand() { seed = 214013 * seed + 0x269EC3; return (seed >> 16) & 0x7FFF; } unsigned int rol(unsigned char a1, char a2) { return (a...
L4ys/LazyKLEE
example/TMCTF-2017-REV400/solve.c
solve.c
c
917
c
en
code
66
github-code
19
27071496017
#ifndef __SpinnerAdapter_H__ #define __SpinnerAdapter_H__ namespace NSDEVICE { class BaseAdapter; class SpinnerAdapter : public Adapter { friend BaseAdapter; public: virtual ~SpinnerAdapter() { } virtual View* getDropDownView(int position, View* convertView, ViewGroup* parent) = 0; protected: ...
wengerclub/aXplorience
app/src/main/cpp/include/nclozer/nkross/device/widget/SpinnerAdapter.h
SpinnerAdapter.h
h
483
c
en
code
0
github-code
19
72018524204
// // AppDelegate.h // ArchiPeda // // Created by Jeffrey Delawder Jr on 10/13/12. // Copyright (c) 2012 Jeffrey Delawder Jr. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
Glchriste/Architecture_Pedagogical_App
ArchiPeda/AppDelegate.h
AppDelegate.h
h
296
c
en
code
0
github-code
19
36167437639
#include "Node.h" template <typename T> class ListaOrdenada { private: Node<T> *Head; int N; public: bool insert(T X) { Node<T> *P = Node<T> ::MontaNode(X); if (!P) return false; Node<T> **K = &Head; int M = X.Mat; while ((*K) && ((*K)->D).Mat <=...
Raikyr4/Estrutura_de_Dados
Lista/ListaOrdenada.h
ListaOrdenada.h
h
1,400
c
en
code
1
github-code
19
2760575202
#pragma once #include <optional> #include <QString> #include <QVariant> #include <mpv/client.h> // ======================================================== // MPV type conversion // ======================================================== namespace mpv_type { // mpv/C type mapping template<typename T> struct format...
Orochimarufan/Midoku
src/mpv/mpv_type.h
mpv_type.h
h
2,815
c
en
code
0
github-code
19
29063631843
/* * Copyright 2014-present Alibaba 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...
Hansonwong47/havenask
aios/plugins/indexlib_plugin/plugins/aitheta/util/parallel_merge/parallel_merge_util.h
parallel_merge_util.h
h
2,048
c
en
code
null
github-code
19
73228929642
/* * Copyright (c) 2009, * Computational Image and Simulation Technologies in Biomedicine (CISTIB), * Universitat Pompeu Fabra (UPF), Barcelona, Spain. All rights reserved. * See license.txt file for details. */ #ifndef _wxMitkMultiSliceFactory_H #define _wxMitkMultiSliceFactory_H #include "wxMitkWidgetsWin32Header.h...
jakubsadura/Swiezy
src/Modules/wxMitk/libmodules/wxMitkWidgets/include/wxMitkMultiSliceFactory.h
wxMitkMultiSliceFactory.h
h
1,029
c
en
code
3
github-code
19
23949072973
/* * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _HARDWARE_STRUCTS_SCB_H #define _HARDWARE_STRUCTS_SCB_H #include "hardware/address_mapped.h" #include "hardware/regs/m0plus.h" // SCB == System Control Block typedef struct { io_ro_32 cpuid; io_rw_32 i...
Klipper3d/klipper
lib/rp2040/hardware/structs/scb.h
scb.h
h
489
c
en
code
7,817
github-code
19
70257410923
//sgzl #include <ansi.h> inherit NPC; #include "huoyannpc2.h" void create() { set_name("魔礼红", ({ "moli hong", "guangmu tianwang", "hong", "tianwang" }) ); set("gender", "男性" ); set("long", "魔家四将之一,使一杆方天画戟,秘授一把伞。名曰:「混元伞。」\n" "伞皆明珠穿成,有祖母绿,祖母碧,夜明珠,辟尘珠,辟火珠,辟水\n" "珠,消凉珠...
mudchina/xyj2006
world/d/dntg/sky/npc/tianwang2.c
tianwang2.c
c
2,463
c
en
code
17
github-code
19
24337030322
// // RPGiftPointV.h // Market // // Created by 陆楠 on 15/3/25. // Copyright (c) 2015年 lunan. All rights reserved. // #import <UIKit/UIKit.h> #import <AddressBookUI/AddressBookUI.h> #import <AddressBook/AddressBook.h> @protocol RPGiftPointVDelegate <NSObject> -(void)RPGiftPointVButtonPressed:(id)info; @end @int...
XIAOXIAO8023/https---git.oschina.net-zify-woxin
MyMobileServiceYN/MyMobileServiceYN/Market/MaretUI/MKAboutPoint/RegiftPoint/RPGiftPointV.h
RPGiftPointV.h
h
1,143
c
en
code
0
github-code
19
42094134490
/* // Copyright (c) 2010-2017 Intel Corporation // // 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 la...
opnfv/samplevnf
VNFs/DPPD-PROX/stats_port.h
stats_port.h
h
1,918
c
en
code
21
github-code
19
2008835792
/** ****************************************************************************** * 文件名 kf32a_basic_aes.c * 作 者 ChipON_AE/FAE_Group * 版 本 V2.6 * 日 期 2019-11-16 * 描 述 该文件提供了加密模块(AE)外设功能函数,包含: * + AES外设配置 * *********************************************************************...
ChipON-IC/ChipON-KF32Axxx_StdPeriph_Lib
src/kf32a_basic_aes.c
kf32a_basic_aes.c
c
5,190
c
zh
code
4
github-code
19
26772437792
#include <stdio.h> #include <string.h> #define TOUPPER(c) ('a'<=(c)&&(c)<='z'?(c)-'a'+'A':(c) ) int main(void) { char str[10]; int i; strcpy(str, "0123"); i = 0; putchar(TOUPPER(str[++i])); }
frkn9/kn-king-kitab-cevaplar
chap 14/exercises/5.c
5.c
c
222
c
en
code
0
github-code
19
36743189270
//#define OUTPUT_READABLE_QUATERNION //#define OUTPUT_READABLE_EULER #define OUTPUT_READABLE_YAWPITCHROLL //#define OUTPUT_READABLE_REALACCEL //#define OUTPUT_READABLE_WORLDACCEL MPU6050 mpu; bool dmpReady = false; uint8_t mpuIntStatus; uint8_t devStatus; uint16_t packetSize; uint16_t fifoCount; uint8_t fifoBuffer[64...
VanThanBK/Trobot_Balancing
Trobot/MPUSenser.h
MPUSenser.h
h
3,089
c
en
code
0
github-code
19
13238813835
// // PTScanner.h // Proteus // // Created by David Owens II on 10/8/14. // Copyright (c) 2014 owensd.io. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, PTTokenType) { PTTokenTypeError = -1, PTTokenTypeIdentifier, PTTokenTypeKeyword, PTTokenTypeIndent, PTT...
NelsonLeDuc/proteus
src/_old/lexer/PTScanner.h
PTScanner.h
h
786
c
en
code
0
github-code
19
17045271534
// // PlayListController.h // Run and Roll // // Created by Joaquin on 13-4-20. // Copyright (c) 2013年 Joaquin Hwang. All rights reserved. // #import <UIKit/UIKit.h> #import <MediaPlayer/MediaPlayer.h> @class PlayListController; @protocol PlayListControllerDelegate <NSObject> - (void)updatePlayList:(NSMutableDic...
CarlSelves/runtohell
PlayListController.h
PlayListController.h
h
673
c
en
code
0
github-code
19
9530664905
#include "main.h" #include <string.h> /** * _strcmp - the function that strcat two arrays * * @s1: the string one * @s2: the string 2 * * Return: 1 if true , 0 if false */ int _strcmp(char *s1, char *s2) { int equal = 0; while (*s1) { if (*s1 != *s2) { equal = ((int)*s1 - 48) - ((int)*s2 - 48); ...
Engobito/alx-low_level_programming
0x06-pointers_arrays_strings/3-strcmp.c
3-strcmp.c
c
369
c
en
code
0
github-code
19
34852705524
#ifndef ANTLR_TEXT_POSITION_H #define ANTLR_TEXT_POSITION_H class AntlrTextPosition { public: AntlrTextPosition(): mLine(-1), mPos(-1) {} AntlrTextPosition(int line, int pos): mLine(line), mPos(pos) {} AntlrTextPosition(const AntlrTextPosition& that): mLine(that.mLine), mPos(that.mPos) {} const AntlrText...
crafter2d/crafter2d
src/tools/yasc/compiler/antlr/antlrtextposition.h
antlrtextposition.h
h
624
c
en
code
2
github-code
19
3082630072
/* * File: apostas.c * Author: marcos-bah * * Created on July 21, 2021, 9:40 AM */ #include "apostas.h" #include<time.h> //necessário p/ função time() #include <stdlib.h>// necessário p/ as funções rand() e srand() #include "keypad.h" #include "lcd.h" #include "bits.h" #include "config.h" #include "ssd.h" #i...
marcos-bah/embarcados-caca-niquel
apostas.c
apostas.c
c
5,318
c
en
code
0
github-code
19
43801948237
#include <inc/lib.h> #include <lwip/sockets.h> #include <lwip/inet.h> int umain(int argc, char **argv) { if(argc != 5) { cprintf("migrate_send_normal: argument error!\n"); cprintf("migrate_send_normal \"env_id\" \"destination_ip\" \"destination_port\" \"local_ip\"\n"); return -1; } int sockfd; struct socka...
finallyjustice/mitjos
process-migration/vm1/user/migrate_send_normal.c
migrate_send_normal.c
c
4,439
c
en
code
0
github-code
19
38263364592
#ifndef MF3D_BINARYREAD_H #define MF3D_BINARYREAD_H /*============================================================================== * * File: MFBINRD.H * * Function: Binary reading utilities. * * Version: Metafile: Version 1.0 3DMF files * Package: Release #3 of this code * * Author(s): Rick Wong (RWW), D...
virtualritz/ayam
ayam-sys/ayam/ayam/src/MF3D/mfbinrd.h
mfbinrd.h
h
1,593
c
en
code
0
github-code
19
74536991722
#ifndef HYGROMETER #define HYGROMETER #include <wiringPi.h> class Hygrometer{ public: Hygrometer(int pinNum); bool soil_isDry(void); float readAnalog(void); private: float threshold; // If moisture level is below this percentage, soil is too dry int pinNumber; }; #endif
grwells/Projects
I61_Internship/SoilHumidity_Sensor/Hygrometer.h
Hygrometer.h
h
302
c
en
code
2
github-code
19
27310766139
#include <stdlib.h> #include <string.h> #include "main.h" /** * _strdup - Creates an in-memory copy of a string * @str: Character string to be duplicated * * Description: This function returns a pointer to a new string * that is a copy of the string 'str' * * Memory for the new string is obtained with malloc and...
AlanTuring2030/holbertonschool-low_level_programming
malloc_free/1-strdup.c
1-strdup.c
c
660
c
en
code
0
github-code
19
74581314284
#ifndef PISCES_H #define PISCES_H #include "../animal.h" /** @class Pisces * Kelas Pisces mendefinisikan atribut untuk pisces */ class Pisces: public Animal { public: /** @brief Constructor * Menciptakan Pisces dengan atribut default untuk pisces pada umumnya. */ Pisces(); private: co...
holylovenia/meinzoo
src/animal/pisces/pisces.h
pisces.h
h
391
c
id
code
0
github-code
19
10723507738
/* * Copyright (C) 2001 Peter Hunnisett * * 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.1 of the License, or (at your option) any later version. * * This libr...
thalium/icebox
third_party/virtualbox/src/VBox/Devices/Graphics/shaderlib/wine/include/rpcnterr.h
rpcnterr.h
h
2,637
c
en
code
550
github-code
19
17907332969
#include <stdbool.h> #include <stdio.h> #include <stddef.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #ifndef __SIM__ #include "cortexm/cortexm.h" #endif #include "sffs_block.h" #include "sffs_local.h" #include "sffs_filelist.h" #include "sffs_serialno.h" #include "sffs_dir.h" #in...
StratifyLabs/StratifyOS
src/sys/sffs/sffs_file.c
sffs_file.c
c
26,975
c
en
code
109
github-code
19
70261355243
inherit ROOM; int do_out(string arg); void create() { set("short", "筒子桥"); set("long", @LONG 这是一座破旧的石桥,桥下是护城河缓缓的流水。水看上去很清, 这里是进皇宫后门的必经之路。 LONG); set("outdoors", "beijing"); set("exits", ([ "north" : __DIR__"di_anmen", "south" : "/d/huanggong/jingshan", ...
mudchina/xkx100
d/beijing/hbridge.c
hbridge.c
c
500
c
en
code
22
github-code
19
69943180844
#define _CRT_SECURE_NO_WARNINGS_ //#include<stdio.h> //int main() //{ // int x = 10; // int y = 10; // x = y = ++y; // printf("%d %d ",x, y); // return 0; //} //int main() //{ // int a = 'A' + 1.6; // printf("%d", a); // return 0; //} #include<stdio.h> //int removeElement(int* nums, int numsSize, int val) //{ // int...
yaozebing/c-code
1_13/1_13/1_13.c
1_13.c
c
1,503
c
uk
code
0
github-code
19
32016000990
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/in.h> #include <time.h> // TODO: remember to add these dynamically #define DNS_SERVER "8.8.8.8" #define PORT 53 #define DNS_STATIC_...
ahmedmagdy492/simple_dns_client
main.c
main.c
c
5,180
c
en
code
0
github-code
19
39384812138
// // Receiver.h // 命令模式 // // Created by 饶君波 on 2018/8/29. // Copyright © 2018年 饶君波. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> //正真的执行者,也就是命令的真正执行者 @interface Receiver : NSObject @property (nonatomic, strong)UIView *receiverView; - (void)makeDarker:(float)param; - (vo...
raojunbo/DesignPatterns
命令模式/命令模式/Receiver.h
Receiver.h
h
412
c
en
code
3
github-code
19
40878961955
#ifndef _BOOK_H_ #define _BOOK_H_ #include <iostream> using namespace std; class Book { public: string Author; string Category; int Pages; bool Loaned; Book(); Book(const char*, const char*, int, bool); ~Book(); friend ostream & operator << (ostream &, const Book &); }; Book::Book() { } Book::Book(const char* ...
Krizuu/C_Files_from_old_repo
map_book/book.h
book.h
h
615
c
en
code
0
github-code
19
19736231859
/// /// @file Dictionary.h /// @author haowang(improvesf@163.com) /// @date 2018-05-16 14:34:01 /// #ifndef __DICTIONARY_H__ #define __DICTIONARY_H__ #include "Noncopyable.h" #include <string> #include <vector> #include <utility> #include <unordered_map> #include <set> using std::string; using std::vecto...
tianxintian/cpp
Inputassistant/inc/server/Dictionary.h
Dictionary.h
h
1,213
c
en
code
1
github-code
19
6823387031
// Tests that inline kickasm uses clause makes the compiler treat the variable in a special way // Always allocate memory for the variable (do not allow it to be turned into a constant) char color = 7; void main() { kickasm(uses color) {{ lda color sta $d020 }} }
jbrandwood/kickc
src/test/kc/kickasm-uses-0.c
kickasm-uses-0.c
c
291
c
en
code
5
github-code
19
38558452212
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> /* abcdefghijklmnopqrstuvwxyz */ const char *WWF_SCORES = "144214331:524214:11125483:"; const char *SCR_SCORES = "1332142418513113:11114484:"; const char *g_scores = NULL; int g_show_words = 1; #...
doug16rogers/dr
fun/wtools/wd-score.c
wd-score.c
c
2,675
c
en
code
3
github-code
19
41664974503
#include "cpu/instr.h" /* Put the implementations of `push' instructions here. */ static void instr_execute_1op() { OPERAND temp; temp.data_size = data_size; temp.sreg = SREG_DS; temp.type = OPR_MEM; operand_read(&opr_src); cpu.esp -= data_size / 8; temp.addr = cpu.esp; temp.val = sign_ext(o...
TF-Liu/NJUCS-PA2020_fall
nemu/src/cpu/instr/push.c
push.c
c
1,527
c
en
code
3
github-code
19
7531626376
/****************************************************************************************** * Data Structures in C++ * ISBN: 7-302-33064-6 & 7-302-33065-3 & 7-302-29652-2 & 7-302-26883-3 * Junhui DENG, deng@tsinghua.edu.cn * Computer Science & Technology, Tsinghua University * Copyright (c) 2006-2013. All rig...
AngelKitty/review_the_national_post-graduate_entrance_examination
books_and_notes/professional_courses/data_structures_and_algorithms/sources/cpp_code/course_code/src/laby/readlaby.h
readlaby.h
h
1,518
c
en
code
803
github-code
19
35971374372
/* This file is part of the UAF (Unified Architecture Framework) project. * * Copyright (C) 2012 Wim Pessemier (Institute of Astronomy, KULeuven) * * Project website: http://www.ster.kuleuven.be/uaf * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser Ge...
uaf/uaf
src/uaf/util/monitoringmodes.h
monitoringmodes.h
h
2,282
c
en
code
104
github-code
19
17175262920
char *ft_strcpy(char *s1, char *s2) { int i; i = 0; while (s2[i]) { s1[i] = s2[i]; i++; } s1[i] = s2[i]; return (s2); } /*-------------------------------TEST BELOW-----------------------------------*/ #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } v...
Nylux/Prep-Exam-Final
t1/ft_strcpy/ft_strcpy.c
ft_strcpy.c
c
572
c
en
code
0
github-code
19
14675139434
#ifndef _SFTP_MKDIR_H_ #define _SFTP_MKDIR_H_ #include "sftp_operation.h" #include <string> #include "CreateDirRequest.h" namespace sftp { /* Class: sftp_mkdir * Description: Used to create a directory on the remote host */ class sftp_mkdir : sftp_operation { publ...
magnusl/ssh
src/sftp_mkdir.h
sftp_mkdir.h
h
1,397
c
en
code
0
github-code
19
150616070
#include <sys/resource.h> #include <stdio.h> #include <inttypes.h> #include "bmp.h" #include "file.h" #include "image.h" #include "sepia.h" #include "utils.h" #define OUT stderr #define EXECUTABLE "image-transformer" static const char *r_msg[] = { [READ_INVALID_SIGNATURE] ="Invalid bitmap signature", [READ_...
octoant/low-level-programming
src/main.c
main.c
c
2,756
c
en
code
1
github-code
19
4761437549
#include "rule.h" static int dirRow[4] = {0, 1, 1, 1}; static int dirCol[4] = {1, 0, 1, -1}; static int checkGomokuInDirection(board_t board, char chess, int row, int col, int dir) { int i, moku = 1; // to negative direction int r = row, c = col, dr = dirRow[dir], dc = dirCol[dir]; for (i = 1; i < 5; ...
Hidden-me/Gomoku
src/rule.c
rule.c
c
1,503
c
en
code
0
github-code
19
23997603341
#pragma once #include <bits/stdc++.h> #include <search_space.h> #include <state_space.h> namespace planner { class Node { public: Node() = delete; Node(const world::Vector2 &data) : data_(data), parent_(nullptr), cost_(std::numeric_limits<double>::max()), id_(idCounter_++) {} Node...
arihantb2/rrt
include/rrt.h
rrt.h
h
4,268
c
en
code
1
github-code
19
72069792043
/** * * @file ClockLabelWindow.h * * Declaration of class ClockLabelWindow. * * @author Patrick Schwab * @date 5/23/12 * */ #pragma once #include <QtGui/QWidget.h> #include "Observer.h" #include "ClockModel.h" class QLabel; /** * @class ClockLabelWindow * * This class implements a widget for displaying a clo...
d909b/SWPUE5-Observer
SWPUE5-Observer/ClockLabelWindow.h
ClockLabelWindow.h
h
587
c
en
code
1
github-code
19
30384082972
// general constants used by the kernel // // #if (CHIP == INTEL) #define K_STACK_BYTES 1024 // kernel stack bytes #define INIT_PSW 0x0200 // initial psw #define INIT_TASK_PSW 0x1200 // initial psw of task(IOPL is 1) #define TRACEBIT 0x100 // take psw and OR of proc[] and use them for tracing #define SETPSW(...
tatsuya4649/minix
src/kernel/const.h
const.h
h
5,331
c
en
code
0
github-code
19
15501383601
#include <errno.h> #include <inttypes.h> #include <stdlib.h> #include <string.h> #include "smtpd.h" #include "log.h" #define PROTOCOL_VERSION "0.7" struct filter; struct filter_session; static void filter_protocol_internal(struct filter_session *, uint64_t *, uint64_t, enum filter_phase, const char *); static void f...
openbsd/src
usr.sbin/smtpd/lka_filter.c
lka_filter.c
c
43,758
c
en
code
2,915
github-code
19
11342113594
#include <string.h> #include <math.h> #include "vec.h" #include "drend.h" #include "render.h" const float fov_x = 90.0; void R_Init (void) { camera.center_x = vid.w / 2.0; camera.center_y = vid.h / 2.0; camera.fov_x = fov_x * (M_PI / 180.0); camera.dist = (vid.w / 2.0) / tan(camera.fov_x / 2.0); camera.fov_y ...
fielder/drend
r_main.c
r_main.c
c
2,384
c
en
code
0
github-code
19
16806571687
#include "main.h" /** * main - the entry point to the program. Prints all args on a new line. * @argc: returns the number of arguments passed during run time * @argv: array of space sperated arguments passed to CLI during runtime * Return: returns zero indicating successful. */ int main(int argc, char *argv[]) { ...
JosiahUfono/alx-low_level_programming
0x0A-argc_argv/2-args.c
2-args.c
c
405
c
en
code
0
github-code
19
72168737643
#include <stdint.h> #include "gba.h" #include "timer.h" #include "irq.h" #include "peripherals/peripherals.h" #include "mem.h" #include "linker.h" #include "utils.h" #include "swifunctions.h" #include "dma.h" #define WRAM0_BEGIN 0x02000000 #define WRAM0_SIZE 0x40000 #define WRAM1_BEGIN 0x03000000 #define WRAM1_SIZE ...
gberthou/AdvanceOS
gba.c
gba.c
c
5,353
c
en
code
47
github-code
19
42288322895
#include "hof.h" int load(struct player list[]){ return 0; } bool save(const struct player list[], const int size){ FILE *fscore=fopen(HOF_FILE,"w"); if(fscore==NULL){ return false; } for(size_text i=0;i<size;i++){ fprintf(fscore,"%s %d\n",list[i].name,list[i].score); } fclose(fscore); return...
mattkanuch/repo
C/boardgame/hof.c
hof.c
c
422
c
en
code
0
github-code
19
28908620667
/************************************************************* * at328-0.c - Demonstrate simple I/O functions of ATmega328 * * Program loops turning PC0 on and off as fast as possible. * * The program should generate code in the loop consisting of * LOOP: SBI PORTC,0 (2 cycles) * CBI ...
pjanish/GardeningPlus
lab4/at328-0.c
at328-0.c
c
1,508
c
en
code
0
github-code
19
21543171940
//============================================================================== // DatabaseTester.h // Created July 17 2012 //============================================================================== #ifndef DATABASE_TESTER #define DATABASE_TESTER #include "Database.h" #include "Random.h" //==================...
hunterowens/StreetScope
legacy/database/DatabaseTester.h
DatabaseTester.h
h
1,668
c
en
code
0
github-code
19
43725484914
// // NSString+Utils.h // LZZJson2OCObject // // Created by zizheng lu on 2020/9/10. // Copyright © 2020 Chemm. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSString (Utils) /// 根据驼峰命名拆分字符串 -(NSArray *)seperateByUppercaseWord; /// 转成空格键划分的句子 -(NSString *)formatTo...
luzizheng/LZZJson2OCObject
LZZJson2OCObject/NSString+Utils.h
NSString+Utils.h
h
416
c
en
code
1
github-code
19
8260290882
#include <stdio.h> #include <stdlib.h> int ft_atoi(char *str) { int sum; int sign; int found; sum = 0; sign = 1; found = 1; while (*str == ' ' || *str == '\t' || *str == '\n' || *str == '\f' || *str == '\r') str++; if (*str == '-') sign = -1; if (*str == '-' || *str == '+') str++; while (*str && found...
julekgwa/exams
exam_prac_01/ft_atoi.c
ft_atoi.c
c
537
c
en
code
7
github-code
19
26661206363
/* Array --> Array is collection of same data type Array elements have continous memory location index start with 0 index ending with length-1 */ #include<stdio.h> void main() { int a[5]; int b[5]; int c[5]; printf("Enter elements for 1st array: "); for(int i=0;i<5;i++) { scanf("%...
ShrutiPethani123/ManageTeam
Array.c
Array.c
c
1,642
c
en
code
0
github-code
19
74073878762
#ifndef STACK2_H #define STACK2_H // 12161756 윤성호 // 기존 stack.h에서 추가된 부분(아래 3줄) int getOpNum(char); // token을 받아 그에 맞는 숫자를 반환하는 함수 bool confirm(char*); // 중위표기식 배열을 받아 피연산자수 > 연산자수일때 true를 리턴하는 함수 void convert(char*); // 중위표기식 배열을 받아 후위표기식으로 출력하는 함수 #include <iostream> #include <string> using namespace std; // 1...
grympan/Data_Structure
HW2/HW2_12161756_윤성호_2/stack2.h
stack2.h
h
3,220
c
ko
code
0
github-code
19
17431574267
#include "main.h" /** * _strcat - function * @dest: param * @src: param * Return: 0 */ char *_strcat(char *dest, char *src) { int blessing; int leo; for (blessing = 0; dest[blessing] != '\0'; blessing++) { ; } for (leo = 0; src[leo] != 0; leo++) { dest[blessing] = src[leo]; blessing++; } dest[ble...
Grace-codes9/alx-low_level_programming
0x06-pointers_arrays_strings/0-strcat.c
0-strcat.c
c
353
c
en
code
0
github-code
19