blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 357 | content_id stringlengths 40 40 | detected_licenses listlengths 0 58 | license_type stringclasses 2
values | repo_name stringlengths 4 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-14 21:31:45 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-01 00:00:00 2023-09-05 23:26:37 | committer_date timestamp[ns]date 1970-01-01 00:00:00 2023-09-05 23:26:37 | github_id int64 966 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 24
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-02-03 21:17:16 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 180
values | src_encoding stringclasses 35
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 6 10.4M | extension stringclasses 121
values | filename stringlengths 1 148 | content stringlengths 6 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b786f0e5084e5b8717ee0ab80c81566c02fae9f6 | e80e5374b8fd00379293adb35fc8cf017d5f4cc7 | /qemu_mode/qemu-2.10.0/hw/display/vga.c | 63421f9ee8563ce1f0a1f38de5957b29d43123c4 | [
"GPL-2.0-only",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | CAFA1/afl | dcebf3a3acae3e9783bbb79d8cff6958b496fa34 | 01c113b61ab70c3b02f3d7c74e6dfa20cfc7813d | refs/heads/master | 2023-04-10T14:30:34.901666 | 2020-07-27T01:06:32 | 2020-07-27T01:06:32 | 272,596,630 | 0 | 2 | Apache-2.0 | 2021-04-15T00:56:55 | 2020-06-16T03:03:26 | C | UTF-8 | C | false | false | 69,248 | c | vga.c | /*
* QEMU VGA Emulator.
*
* Copyright (c) 2003 Fabrice Bellard
*
* 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,... |
786c7cd8f4394df3ccb148093af658abb900640c | d49239210e25ead28e05c6a751fd2a4b3fa3fa1c | /uTasker/GlobalTimer.c | 281c86326d7800804d8e0b454f7d5c20003a1edf | [] | no_license | uTasker/uTasker-Kinetis | 107ec50fc3a204da6b5f98cf034fe00d9cecfcd8 | 561d1ef7715367d3868719af6081635a1b44414d | refs/heads/master | 2022-12-03T00:30:43.124659 | 2022-11-28T00:47:45 | 2022-11-28T00:47:45 | 88,628,308 | 68 | 36 | null | 2022-02-17T19:47:11 | 2017-04-18T13:29:30 | C | ISO-8859-2 | C | false | false | 22,108 | c | GlobalTimer.c | /**********************************************************************
Mark Butcher Bsc (Hons) MPhil MIET
M.J.Butcher Consulting
Birchstrasse 20f, CH-5406, Rütihof
Switzerland
www.uTasker.com Skype: M_J_Butcher
---------------------------------------------------------------... |
e549aef019275397c7d109da0ec30e4cde3f58cf | 4cc3671dfd39d695f40835a368d79af6d6a28672 | /SNES_nokia_test/SNES_nokia_test/main.c | 27b30f7f032697f3b81ded726619b13438f8d4b7 | [] | no_license | spure02/Snake-Game | 6086ffd56e4e414a77d95f89ff8b9f49561373bc | 010878011308920881d5a2b7090b6619a2890b7d | refs/heads/master | 2022-11-23T02:04:09.192821 | 2020-07-20T06:17:30 | 2020-07-20T06:17:30 | 194,920,444 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 5,557 | c | main.c | /*
* SNES_nokia_test.c
*
* Created: 5/23/2019 10:14:12 AM
* Author : Simran
*/
#include <avr/io.h>
#include <util/delay.h>
#include "SNES.c"
#include "nokia5110.c"
#include "timer.h"
#include "scheduler.h"
enum SNES_States { SNES_LISTEN } SNES_State ;
unsigned short button;
void SNES_Process() {
if(butto... |
9edab4928c08e98a26cc674de154c8b0bb45e3a5 | b984f55f1b43b5ea88832c72adf6e0dedd8f7581 | /sq_srcs/sq_rdfile_save_tetri.c | b7c50972d1db8e756fa627eaf184fbbcbe7d862d | [] | no_license | camelchch/fillet | 239af4cb14594d380d4fe60f5da5f1f423c90946 | f12aa0e6e8998b411ba9318da9cab4a6bbee5045 | refs/heads/master | 2021-08-17T07:32:01.450146 | 2017-11-20T23:07:37 | 2017-11-20T23:07:37 | 110,858,241 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 4,074 | c | sq_rdfile_save_tetri.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* sq_rdfile_save_tetri.c :+: :+: :+: ... |
a6b74f1101b838b198480e150800f81bec5be2bc | d3a661a5975a01379e4230b774f1e154b091aad1 | /arduino/libraries/fin/fin.h | 81b63d9bc873e81c5bd0efdb63162ed6a1f462c5 | [
"BSD-3-Clause"
] | permissive | jgoppert/aae497-f19 | e0e7f956deae262e6e14da1a34830df56bd31bdf | 3942e8f543b80cc76da2bc756d6d5f6feda0901e | refs/heads/master | 2021-07-16T21:25:00.083356 | 2019-12-13T23:02:07 | 2019-12-13T23:02:07 | 203,658,288 | 4 | 17 | BSD-3-Clause | 2019-12-14T03:50:05 | 2019-08-21T20:19:57 | Jupyter Notebook | UTF-8 | C | false | false | 1,045 | h | fin.h | /* This file was automatically generated by CasADi.
The CasADi copyright holders make no ownership claim of its contents. */
#ifdef __cplusplus
extern "C" {
#endif
#ifndef casadi_real
#define casadi_real double
#endif
#ifndef casadi_int
#define casadi_int long long int
#endif
#include <casadi/mem.h>
int fins(cons... |
a7e940332772e900c6e7b5d6b1f130ebbfa58110 | c1c9d793b53c3667e857996a92888889af15dfcc | /solidic/ota.c | 0418571f066921e7419b8a7bd5ad2df544675b9f | [] | no_license | T0213-ZH/fandiuqi | a1b3d1825686e4ac4ffb18139914c942115eef6a | 45d4670f91fe03892c3f10778958e8b122488c8d | refs/heads/master | 2020-04-02T10:51:03.498563 | 2018-10-23T16:03:15 | 2018-10-23T16:03:15 | 154,358,006 | 0 | 0 | null | null | null | null | GB18030 | C | false | false | 8,195 | c | ota.c | #include "ota.h"
#include "stdlib.h"
#include "crc16.h"
#include "flash_interface.h"
extern unsigned char GAPRole_TerminateConnection(void);
#define SDI_OTA_flash_write(addr, len, buf) writeFlash(addr, buf, len)
#define SDI_OTA_flash_read(addr, len, buf) readFlash(addr, buf, len)
#define SDI_OTA_flash_erase(ad... |
5b98472a28e4a522b59361fcd31bd4f55cffcae4 | ab75f3b0a167cdc9f9a474edd5ca443fffce92bc | /hw_1702-1706/10511.c | e1a299dc6c3ccc8a38924f4ba33fad9e9f1cdd70 | [] | no_license | alter027/cp | ee4439b4e4d1c041a1d40ff751455024b07e41fb | 1211f44496c09b4dac7ce63ba6fb245589e1ea45 | refs/heads/master | 2020-03-28T21:45:10.983371 | 2019-02-18T02:32:07 | 2019-02-18T02:32:07 | 94,857,703 | 3 | 1 | null | null | null | null | UTF-8 | C | false | false | 359 | c | 10511.c | #include<stdio.h>
int main(void){
int n,m,i,f[5],check,count;
while(scanf("%d",&n)!=EOF&&n!=0){
int v[5]={0};
check=1;count=0;
for(i=0;i<n;i++){
scanf("%d",&f[i]);
if(f[i]==i+1)
v[i]=1;
}
for(i=0;i<n;i++){
if(v[f[i]-1]==0){
check=0;
break;
}
}
if(check==1)
printf("yes\n");
e... |
272cea87a651850af77037b5fc077398ec7e00f4 | 3282b56a5e821e248cd40b8621f1af22662626ab | /motor.h | df2f35e4c96168b8256d3ee67fad8dc097ab89f6 | [] | no_license | EthanWong2212/2271MINI-proj | 0d5858c67b821d87e4fe87798826928dfd733d5e | ccc555dfbc74b06d88ee22a42e90827e0c3a5755 | refs/heads/master | 2023-01-15T17:40:27.950696 | 2020-11-19T05:51:05 | 2020-11-19T05:51:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 590 | h | motor.h | #ifndef MOTORS_H_
#define MOTORS_H_
#define PTD0_Pin 0 //Left forward
#define PTD1_Pin 1 //Left reverse
#define PTD2_Pin 2 //Right forward
#define PTD3_Pin 3 //Right reverse
#define ROBOT_FORWARD 1 //0001
#define ROBOT_BACKWARD 2 //0010
#define ROBOT_LEFT 4 //0100
#define ROBOT_RIGHT 8 //1000
#define ROBOT_ST... |
b4c0badc35f1ee66f59e27ec837aa303d2b36293 | 12cae7118f71c8053172e542f3dacebb595a9110 | /benchmarks/ptaben-path-insensitive/basic_c_tests/struct-twoflds.c | 5ad6081092a266d83b57213f02a62037805b2794 | [
"Apache-2.0"
] | permissive | dloghin/discover | 621e513a5777c0b2ee656d30f1095dcb3c2661aa | ea948e7a37380fcaa8c4ce3d9fd90746657dcbe4 | refs/heads/master | 2023-09-03T08:01:36.210764 | 2021-10-06T17:32:04 | 2021-10-06T17:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 759 | c | struct-twoflds.c | /*
* Struct with multiple fields.
* Author: Sen Ye
* Date: 28/04/2014
*
* Migrated to Discover: Ta Quang Trung
* Date: June 06, 2020
*/
#include <stdio.h>
#include <stdlib.h>
#include <discover.h>
struct IntChar {
int f1;
char f2;
};
struct CharInt {
char f1;
int f2;
};
int main() {
struct IntChar*... |
5e094dee8a7be7babd64bcb48784825400f1cc15 | 41e61d0d33639a255d8980ca28629a6d404b4632 | /0x00-math_complex/7-division.c | 8b84c3cf707b3289ff2e313a732f66509765c649 | [] | no_license | dkb4rb/holbertonschool-math | 4ab2633ba881b36a3d04b5da14a3097000647878 | eecf13c894d5ff876a1a9a7dc501fe0bd29aa5db | refs/heads/main | 2023-06-26T07:19:19.982114 | 2021-08-02T07:09:01 | 2021-08-02T07:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 448 | c | 7-division.c | #include "holberton.h"
#include <math.h>
/**
* division - perform the division operation to complex numbers
* @c1: first complex number
* @c2: second complex number
* @c3: quotient of complex numbers
* Return: void
*/
void division(complex c1, complex c2, complex *c3)
{
c3->re = ((c1.re * c2.re) + (c1.im * ... |
86ad693b74a0dfb81cbd06feac8ca06247a58bca | f7a4e2b350b0ed7901682a13e42995773e41fb92 | /ceng334/p2.c | e2824237d4d2b50bb52adc9a88ec1ec691de4465 | [] | no_license | yalpul/ceng | b670547d07fa4869b6711c88d4907267ec5fc687 | 86269f8eda8c9f45b70ffb4b4684df7637045575 | refs/heads/master | 2021-07-09T07:25:53.855170 | 2020-07-25T19:47:26 | 2020-07-25T19:47:26 | 157,917,310 | 2 | 0 | null | null | null | null | UTF-8 | C | false | false | 337 | c | p2.c | #include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
int main()
{
int fd = shm_open("test", O_CREAT | O_RDWR, 0666);
ftruncate(fd, 4096);
char * ptr = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
strcpy(ptr, "denem1234");
int a;
scanf("%d", &a)... |
fb84a7a283a4285bfbee1e80437bb9665c76647a | a8573d29d5556439a67a9be825f6faa5af2f6224 | /8_AbstractFactory/Include/Factory.h | f59e80726b39b49af69c6af84f5d22af6ab5e8a3 | [] | no_license | H-Yano/c_gof_design_pattern | 39a21f5782743e55601cf773c02fa9ddf31e99ea | 70959937e625c2613a97acbfe0b6a15e4193ff24 | refs/heads/master | 2023-03-19T01:27:46.348647 | 2019-05-20T08:47:25 | 2019-05-20T08:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 916 | h | Factory.h | /*
* Factory.h
*
* Created on: 2019/05/10
* Author: Yuk
*/
#ifndef FACTORY_H_
#define FACTORY_H_
#include <Soup.h>
#include <Protein.h>
#include <Vegetable.h>
#include <Ingredient.h>
#define VEGETABLE_SIZE 10
#define INGREDIENT_SIZE 10
typedef struct FactorySt... |
7fa68c00ad71a9cd1a86e62b90b7419121beb2e1 | 12e5d0ba603db924dcf16b64c1ee5c9a78a27f86 | /test/read_mpich.c | 3765f41799d42f1d421497ee7406d1280112366a | [
"LicenseRef-scancode-other-permissive",
"mpich2"
] | permissive | codes-org/dumpi-cortex | 7fe82927107c76d6e0e77f4c1519fc69cc4c8a5e | d619150833e4d1fe865e5b7241efa6358f4771fb | refs/heads/master | 2023-04-19T20:08:50.391068 | 2019-05-16T20:12:15 | 2019-05-16T20:12:15 | 364,360,949 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,358 | c | read_mpich.c | #include <cortex/cortex.h>
#include <cortex/cortex-mpich.h>
#include <string.h>
static int handleDUMPIInit(const dumpi_init *prm, uint16_t thread,
const dumpi_time *cpu, const dumpi_time *wall,
const dumpi_perfinfo *perf, void *uarg) {
//printf("MPI_Init called\n");
return 0;
}
static int handleDUMPISendrecv(... |
338f8ccb0f8af91202bc7dfbe25fe9d5010172e9 | 437a65e090f201e75e9b8962d064d52c4bbd53d1 | /Source_Code/Test Case/Sod Shock Tube (without AMR)/run.C | fb9e1542a2d8e172014b16768e31b77f19936446 | [] | no_license | SulemanMahmood/PlasmaCombustion | 8033d33cafa5634a024227ffed041ca0a3b6c734 | 8e5fd1ef5f61f18a5800bf087768c163a231d713 | refs/heads/master | 2021-05-01T21:38:19.356499 | 2016-12-18T23:18:41 | 2016-12-18T23:18:41 | 70,857,633 | 0 | 3 | null | null | null | null | UTF-8 | C | false | false | 9,301 | c | run.C | #include "run.h"
Main::Main(CkArgMsg* msg){
int dimX=100;
int dimY=100;
int dimZ=100;
delete msg;
mainProxy = thisProxy;
cellProxy = CProxy_Cell::ckNew(dimX,dimY,dimZ);
interfaceProxy = CProxy_intFlux::ckNew(3, dimX+1, dimY, dimZ);
fluxProxy = CProxy_Flux::ckNew(dimX,dimY,dimZ);
cellProxy.run();
fluxPr... |
86f2b5b28b7780bfe1c46a5c6fbc9bd016b3f1bc | 4cf3ee2c90e6ad1cea9cdba1b1e76224eee2ac4d | /apps/plugins/puzzles/help/singles.c | 3f4ecd157bbea099e464b78ddbfbed7516a4d666 | [] | no_license | Rockbox/rockbox | 36f73fc2660f3edb32dc07db26c5f9b88851975f | 67c4231e34cd8147963a054c44a715f3413fb2e3 | refs/heads/master | 2021-09-15T22:10:00.710240 | 2021-08-29T12:19:02 | 2021-09-12T17:35:35 | 3,184,247 | 394 | 157 | null | 2021-09-05T11:00:28 | 2012-01-15T15:37:35 | C | UTF-8 | C | false | false | 6,969 | c | singles.c | /* auto-generated on Dec 7 2020 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 122, TEXT_CENTER | C_RED },
{ 212, TEXT_CENTER | C_RED },
{ 229, TEXT_UNDERLI... |
346e3392850b7a18678b9e40d2ec70897b0a7bdc | 48217d6c7bc9b0b9c1d849e0039479e8adfe6296 | /ht_test.h | 492e497a85cda30d0ae5c582f380db0ebe366735 | [] | no_license | watsonjiang/hybirdthread | 2504dbdb3c4e7ae0ffcbef15b9dd9ed7cb1af3f0 | a1d065be97fda14b5ab65a651983f62020e6e546 | refs/heads/master | 2021-01-19T12:59:33.366659 | 2014-03-03T03:40:11 | 2014-03-03T03:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 261 | h | ht_test.h | #ifndef __HT_TEST_H__
#define __HT_TEST_H__
/* assert a is true, or else print msg and exit */
#define HT_TEST_ASSERT(a, msg) \
if(!(a)) \
{ \
printf("%s:%d - %s\n", __FILE__, __LINE__, msg); \
exit(1); \
}
#endif //__HT_TEST_H__
|
54cc94ed341fd993c2150565db9c097d880977a1 | 2b6c39e2f82e3db097d12aa2ea1ee884653c9804 | /main.c | 197549383c678ef0096abeb2cccc1c60729f3263 | [] | no_license | DeniseBishevsky/Grade-App | 19e5747ad1b2d136f7233e202bc3355b54497c15 | bbb4a79ff35294089f4a7ab17eb37cef9ba8892d | refs/heads/main | 2023-04-18T01:53:03.516165 | 2021-05-08T20:08:58 | 2021-05-08T20:08:58 | 365,203,328 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 18,854 | c | main.c | /* A simple server in the internet domain using TCP
The port number is passed as an argument */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <pthread.h>
#include <signal.h>
#include "myqueue.h"
#define T... |
aa01bc9d42fc031211484524650492975183f4c1 | 4c1e05de4b8c314dff43a70427e81e1e4b24701f | /dateConverterWithUpdater/dcNepaliToEnglish.c | a61dd9ee3535cbed3e77081e03743dc1a406bdb3 | [] | no_license | beannayak/GTKExchangeRateDisplay | f2a5c02fabc8215e46998d5694ce7fda83a35d78 | d185d251fec96fdfdbe3d1f09315da755db34a8d | refs/heads/master | 2018-12-28T16:05:27.316814 | 2015-06-17T22:34:49 | 2015-06-17T22:34:49 | 37,623,923 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 4,719 | c | dcNepaliToEnglish.c | #include <stdio.h>
#include <myString.h>
char *readLine(FILE *myFile){
char buffer[3000] = {0};
char *string = NULL;
fscanf(myFile, "%[^'\n']s", buffer);
if (!feof(myFile) ){
string = (char *) malloc(length(buffer) + 1);
strCpy (buffer, string);
fseek (myFile, 1, SEEK_CUR);
}
... |
ad89ef0a06ddea033966278c3f8c452c45933637 | 086866b08d914eef7e7f52cdceb605bed975d196 | /code.c | 16fe8ee0a8f5c2e3a1488e4bcaa1b6d721e0ee7a | [] | no_license | aghilasadjaoudi/tp-robotique | e4e3e4928498baf218d869fde7e467cd39e904f8 | af1fe7c9e83c2c4eadad2f9555b3457f94dadb3c | refs/heads/master | 2016-08-12T07:39:51.785307 | 2016-02-15T16:46:44 | 2016-02-15T16:46:44 | 51,767,028 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 123 | c | code.c | #define a;
int a=5;
int b=1;
char massi;
char ghiles;
char malek;
int sahit a malek;
on va pas expliquer a yazid demain;
|
1122e48cd74ba05fdb25b7d50ba75207a10adad6 | 4397a8fa011eeb52880923817e36dbc070eb5811 | /src/read_connec.c | ec75faa72c82448533348b70e52923bcc0597846 | [] | no_license | JamesPalport/lem_in | 1dbd5c753285df8c6e58876709cb751ced6be766 | 8d19bd5bacdf2ea71c2c6f3bd8cf7e57096901bf | refs/heads/master | 2020-04-23T16:41:16.235308 | 2019-10-26T15:45:11 | 2019-10-26T15:45:11 | 171,306,083 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,445 | c | read_connec.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* read_connec.c :+: :+: :+: ... |
643dbf1633ff0d76802758d47203140320f4425e | daa9da7742901d02ef03ae69593e805517c4367f | /spl/common/ricoh618_power.c | 387a4d16628bd54bc3647629103fb03c32eb4692 | [] | no_license | IngenicSemiconductor/X-BOOT-WARRIOR | 483e4a016c65b2c569890fef071ea950f4dfa33a | 421804a3c73bf116567cf8c89cb08dcd4d8dd6ba | refs/heads/master | 2016-09-05T09:07:03.461583 | 2013-07-16T06:44:17 | 2013-07-16T06:44:17 | 10,257,822 | 2 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,591 | c | ricoh618_power.c | /*
* PMU driver for ricoh618 PMU
*
*/
#include <config.h>
#ifdef CONFIG_RICOH618
#include <ricoh618_power.h>
#include <simulate_i2c.h>
#include <serial.h>
#include <common.h>
#define EIO 2
#define I2C_READ_OPS
/*************************************************************************/
#ifdef I2C_READ_OPS
static in... |
8b15ba38ed27463eeefef70efc172e174559b962 | 722b5c4a30e552335f28b40d2d4db556f546aee2 | /practice_midterm/upper.c | a715e3942bd204234cb28c25158ef9ae70b661ba | [] | no_license | kimwongyuda/lsp | 67180f1ade7a3bbcd466fc83641075666d4da3d2 | ccec82bbc5dda5e9437e5fcd26b63897ab307662 | refs/heads/master | 2022-02-09T15:04:19.850322 | 2022-02-07T08:01:52 | 2022-02-07T08:01:52 | 149,393,789 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 287 | c | upper.c | #include <stdio.h>
#include <string.h>
void strupper(char str[])
{
int i;
int length = strlen(str);
for (i=0;i<length;i++)
str[i]=toupper(str[i]);
printf("대문자열: %s\n",str);
}
main()
{
char str[100];
printf("문자열을 입력하세요: ");
gets(str);
strupper(str);
}
|
5f8cc62433f4664e070b99973dc77c6005c33399 | 43369807c33c0643b07033d9d4e200debe302862 | /eve_server/server_app/lib/server/example/echo_websocket_server/EIFGENs/echo_websocket_server_mt_no_ssl/W_code/C12/ar372.c | 008668caef1e0452705fdd2ca6ca03f67d1404f3 | [
"EFL-2.0"
] | permissive | jvelilla/Eiffel_Web_Server | 8ebcc06b3d81ea1bf4bba9a557ad5b753db6d0c6 | d194d75ff2322a0e195a2d23aa063943660bce75 | refs/heads/master | 2020-06-01T20:16:17.066391 | 2014-06-27T11:41:14 | 2014-06-27T11:41:14 | 21,387,371 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 167,982 | c | ar372.c | /*
* Code for class ARRAYED_LIST [INTEGER_32]
*/
#include "eif_eiffel.h"
#include "../E1/estructure.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void F372_3237(EIF_REFERENCE, EIF_TYPED_VALUE);
extern void F372_3238(EIF_REFERENCE, EIF_TYPED_VALUE);
extern void F372_3239(EIF_REFERENCE, EIF_TYPED_VALUE);
extern ... |
2d7597b12d4abb9c9b10cc32db8f9f4b45dc0a48 | c2c18bc755e97e23edddfb3846a266203b63a080 | /src/user/serial/write_notifier.c | a6e298091bf3bd56d6614d43660942a825cce2c6 | [] | no_license | aianus/trains | b51458234518c9e5b154b9d68634d464f9ff96b2 | 37cfc4062ad6ac5804b3df0a55e5dfa7fc6be246 | refs/heads/master | 2021-01-18T14:24:26.614566 | 2014-04-06T22:58:38 | 2014-04-06T22:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,185 | c | write_notifier.c | #include <write_notifier.h>
#include <dassert.h>
#include <event.h>
#include <log.h>
#include <nameserver.h>
#include <serial.h>
#include <syscall.h>
#include <ts7200.h>
#include <uart.h>
#include <bwio.h>
void write_notifier() {
int server_tid, channel, event;
dlog("Write Notifier: Waiting for Configuration... |
d7f0247c6c6171ea5ee5132dc3a3d91c14d296e5 | 6aa4906d5cd2c2f114dbe03dd751784334e1f9e7 | /syssvc/banner.c | 26f11310a534e8274779bb6ec126684fce4afc16 | [] | no_license | foss-for-synopsys-dwc-arc-processors/toppers-asp | 0e6e3d4eb2e0f7802f76f639ba5b050c24e543d3 | e2d1e4d3f0201ca951b32fb5ee85c3a82a2fd7fd | refs/heads/master | 2021-01-10T11:40:39.483912 | 2016-03-01T01:46:27 | 2016-03-01T01:46:27 | 43,927,522 | 1 | 1 | null | null | null | null | UTF-8 | C | false | false | 3,505 | c | banner.c | /*
* TOPPERS/ASP Kernel
* Toyohashi Open Platform for Embedded Real-Time Systems/
* Advanced Standard Profile Kernel
*
* Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
* Toyohashi Univ. of Technology, JAPAN
* Copyright (C) 2004-2010 by Embedded and ... |
3ffffed4c4c0c27796684b14b25c749bd693bba7 | bc949cbcded25afc8511d07c8d86509d5746b2a8 | /dataset/16083.c | 44a8b0711737c15c12c9f1755d088fe28b98af2f | [] | no_license | hqjenny/CSmith_random_pgm | 52aa1face59749a9d0656fc4088f6f921aac2dab | 0ebf41b85201cbe791a13304cdb45e22504f0ce7 | refs/heads/master | 2023-08-17T23:28:24.519500 | 2021-09-15T19:55:23 | 2021-09-15T19:55:23 | 406,904,982 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,338 | c | 16083.c | /*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.2.0
* Git version: dcef523
* Options: --no-structs --no-pointers --no-math64 --max-funcs 4 --no-unions --output 16083.c
* Seed: 938005472
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GL... |
8bf0aa2d2c24f3ad38a84c42c389b5f60ab86363 | 22d8582fbd6bfc9fcca7a3c4f55eb0f92e8c3f31 | /exercises/lesson01/3/bl4ckout31/src/kernel.c | aac74534d741030cbbd0587c9b9386b1afa76fc4 | [
"MIT"
] | permissive | stefanJi/raspberry-pi-os | 7a086b3951bb7834c93f3859e1faaf77ed899de0 | 513804a114bd81681008fd0a11ebab3a1acc1a54 | refs/heads/master | 2021-02-03T21:37:19.709072 | 2020-05-23T13:31:56 | 2020-05-23T13:31:56 | 261,217,405 | 2 | 1 | MIT | 2020-05-23T13:31:58 | 2020-05-04T15:07:15 | null | UTF-8 | C | false | false | 596 | c | kernel.c | #include "mini_uart.h"
#include "utils.h"
static unsigned int semaphore = 0;
void kernel_main(void)
{
const unsigned int id = proc_id();
// Only CPU #0 do the UART initialization
if(id == 0) {
uart_init();
}
// Wait for previous CPU to finish printing
while(id != semaphore) { }
uart_send_string("Hello, fr... |
21d0a21c15075af6c1cf45fe4fec3545c8cbb29f | 10fc0134d70ed7afed069f7278c6033c0fd28989 | /src/NLS/datagram_services/inc/datagram_info.h | e938ee66f724fc0beaa1da38fa51b782efceeb93 | [] | no_license | ntonjeta/Nodo-Sensore | e39847f70dda12ed738ba74946ae861ec7f42522 | 2d0896de9d0afa026d1c1aee48d2ca60e6e8d721 | refs/heads/master | 2021-01-10T05:49:53.415132 | 2015-10-27T17:48:16 | 2015-10-27T17:48:16 | 44,812,494 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 638 | h | datagram_info.h | /*
* datagram_info.h
*
* Created on: 02/lug/2015
* Author: gennaro
*/
#ifndef DATAGRAM_INFO_H_
#define DATAGRAM_INFO_H_
#include "datagram_defs.h"
#define NO_SRC_IF 0xff
typedef struct
{
uint8_t* packet;
datagram_if_id_t source_if;
datagram_type_t type;
int packet_length;
datag... |
ad5214348bb8d167b32cc9dca03082d7db413426 | 39bd53197443dd45a498c0da56385c3e5f310673 | /08_push_swap/p_src/solve_pick.c | c71d3c12c9ec01c0222eabe2307b3c2e7460d6bc | [] | no_license | juhakala/root_hive | 33118201686b39efab5595db0ca0550b5aa314ab | 9283dc6bd36ba035f4d663f34514104343020694 | refs/heads/master | 2022-12-16T19:04:49.751532 | 2020-09-21T14:26:49 | 2020-09-21T14:26:49 | 222,804,409 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,165 | c | solve_pick.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* solve_pick.c :+: :+: :+: ... |
bd763d7a51c9f88e381fc05b555ba97802315889 | 07c5dcafd8a47a5d51bb876eab14ae296f144912 | /include/libcjs/cjs/cjsStatus_enum.h | 8a722ef24e3aba121d465466f2f0aa12deb35015 | [
"Apache-2.0",
"MIT"
] | permissive | Jasonchan35/cloudjs | e72e6262ac94770bfe4ceae0885bf425d6a74756 | 6ee201a52a865d81ffae1735c57dc8cb56ff31bc | refs/heads/master | 2021-01-19T00:05:59.554152 | 2017-04-04T04:04:54 | 2017-04-04T04:04:54 | 87,145,238 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 273 | h | cjsStatus_enum.h | axStatus_enum( error )
axStatus_enum( error_newJSObject )
axStatus_enum( error_set_object_property )
axStatus_enum( error_get_object_property )
axStatus_enum( error_set_object_element )
axStatus_enum( error_get_object_element )
axStatus_enum( invalid_func_arg_index ) |
763f99ea40e7c0d6f043df232fff2ffe4a660229 | 0c278805d7c7545903853fffc699cc91a37e8929 | /sdk/component/soc/realtek/amebad/wifi_fw/include/RTL8721D_INT_ROM.h | 71d022fac678c859ae5f394a4876a5ce2ba7f538 | [] | no_license | sengeiou/realtek_ameba_mp_sdk | bacd0aacfc7aeaa50616046339aab5806abd28ec | 89a02b0b773bfc324c12ff36432629420feca19d | refs/heads/master | 2022-12-01T22:53:11.052324 | 2020-08-18T10:43:30 | 2020-08-18T10:43:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,179 | h | RTL8721D_INT_ROM.h | #ifndef __RTL8721D_INT_H__
#define __RTL8721D_INT_H__
#ifndef __ASSEMBLY__
/*--------------------Define --------------------------------------------*/
#define BIT_DBG_TRIGGER BIT0
#define BIT_CD_TRIGGER BIT5
#define CLKIs32K 1
#define CLKIs40M 0
/*--------------------Define Enum------------------... |
08748f3258467d76f558e5295ad7d40c2e7ad782 | 3d0de0f2549d9025540fcec88624c72c079b406f | /BSW/src/bsw/gen/BswM/src/BswM_LinSM.c | a72f8f40675860158bf26117de798f51122c2ee7 | [] | no_license | ongbut999/Jenkins_Test | ee19936e1577bd93d2755d21299ed3fbec553db6 | abb74480c4ce938dd1c7463627c4074071580af4 | refs/heads/master | 2023-06-23T21:26:57.794427 | 2021-07-22T08:05:20 | 2021-07-22T08:05:20 | 388,372,287 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 9,373 | c | BswM_LinSM.c |
/*---------------------------------------------------------------------------------------*/
/*- Include files -*/
/*---------------------------------------------------------------------------------------*/
#include "BswM.h"
#include "BswM_LinSM.h"
... |
ac13f031a53cf50fc89f795d04820a75528ae67c | dbbb3606c9815d1c23bdf114bb0a077a02e60b4d | /plc4c/spi/src/types.c | 88c25bc0d212fb5a076fb83101ac95dc78545f3f | [
"Apache-2.0",
"Unlicense"
] | permissive | RalfBarkow/plc4x | f0030814493216bb63c19c29954bfb3e94e518e0 | ec16e7426c3f447ef4a8a038206f975eae92d4b9 | refs/heads/develop | 2023-04-07T08:59:09.005316 | 2022-05-22T19:30:55 | 2022-05-22T19:30:55 | 188,875,513 | 0 | 0 | Apache-2.0 | 2023-03-31T15:01:36 | 2019-05-27T16:19:19 | Java | UTF-8 | C | false | false | 3,567 | c | types.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
e8077a7684ecc80baff67f07a630126ea2de4a2f | 016f54b52756de71ce33d286fcd69eb08cf17cac | /src/i2c.h | 1b62d260649db617f4e4c1eed69be66450116c4a | [] | no_license | ljalves/hfeasy | 5f22f64a39961f47222ecb471696cbc4264c0450 | ae1b59fb6a4fac6fac5c8fc47a1cdf20d8e34f2e | refs/heads/master | 2022-05-09T19:19:51.503745 | 2022-04-08T20:27:13 | 2022-04-08T20:27:13 | 166,032,985 | 50 | 9 | null | null | null | null | UTF-8 | C | false | false | 176 | h | i2c.h | #ifndef _I2C_H_
#define _I2C_H_
#include <hsf.h>
int USER_FUNC gpio_i2c_send(uint8_t addr, uint16_t data);
int USER_FUNC gpio_i2c_recv(uint8_t addr, uint8_t *data);
#endif
|
1c6f09c70ddba284a9416d38b1ac7cd63527e093 | 2d1b472ead1c7fc229c32d6007b8c813303aee7d | /tcp4server-epoll.c | 218fd9f0df59c7005bac8db6bfc642ee57d5f13d | [
"Apache-2.0"
] | permissive | gwduan/network-programming-examples | 2c049efcf45ca5a450766edc3917beccdff873ea | 89d46c15b849589954d9b0937fe739010704bbaa | refs/heads/master | 2020-08-12T11:26:40.180406 | 2019-11-24T14:02:40 | 2019-11-24T14:02:40 | 214,758,921 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 4,346 | c | tcp4server-epoll.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <strings.h>
#include <errno.h>
#include <sys/epoll.h>
#include <string.h>
#include <signal.h>
#include "common.h"
#define LISTENQ 1024
#define MAX_EVENTS 128
#define TIME_OUT -1
st... |
045c15d5b5710d02b36701503d6401040139d88a | 6f998b6b00900d8ef6adffca2cb552f5ed556912 | /flowmtr/bsp/platform/SCI/scibrtbl.c | dfe2bd3c8f8b101d576973c413f416f73589d009 | [] | no_license | vortexmakes/yipiesens | 15d10d510866a5804fdaec9a474e19636c658a7b | 5e3fedfbc4b09573e4c448b320809d7a0cd4f96d | refs/heads/master | 2022-11-08T20:35:12.466520 | 2020-06-19T16:00:29 | 2020-06-19T16:00:29 | 267,716,327 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 468 | c | scibrtbl.c | /*
* scibrtbl.c
*/
#include "sci.h"
#include "scibrtbl.h"
/*
* sci_br_tbl: Maps the Baudrate symbol enum defined in
* in serdefs.h with the constant defined
* in sci.h for seting the uart's MCU.
*/
const unsigned short sci_br_tbl[NUM_BAUD] =
{
UC_B300,
UC_B600,
UC_... |
126d32acf57559968a41c76493ea935abbc13deb | 273ea26508dfe9a33e6941a74b7fa65d9053eaaa | /动态库/testdll.h | b2dfd4a9bc7bfa5c7224b41cacc3ca0dd209c121 | [] | no_license | Sdator/hook | 402254c6a20f822c2b068844733ee7f90b690d2c | 0f7e447667e633ca90081718328c4fc25e77eb56 | refs/heads/master | 2022-04-21T04:41:54.928233 | 2020-04-23T13:30:15 | 2020-04-23T13:30:15 | 257,404,034 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 168 | h | testdll.h | // 预处理 防止重复加载库
// 如果没有定义库 就定义一个
#ifndef TESTDLL_H
#define TESTDLL_H
int add(int a, int b);
int sub(int a, int b);
#endif
|
4b107248dd8ca582a8a90dac52bcc3ef5ed3d8d4 | 41364b9eeca9877200cf2ad0fa256dd0d4372f86 | /lnd_files/experiments/DMA/malloc.c | 6edd0a8df13ae064438c071cf18bac204bcbb4e5 | [] | no_license | mahendra-21/lnd_work | 2a10f662effba389c8320839b8c5a8a508bbe272 | 47cfcefef9f7b1ccc64c7235c8e515abf7b9e34d | refs/heads/master | 2020-12-19T15:12:42.558893 | 2020-02-06T07:08:34 | 2020-02-06T07:08:34 | 235,768,266 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 249 | c | malloc.c | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *ptr = NULL;
ptr = (char *) malloc (17);
printf("ptr -> %p *(--ptr) -> %d\n", ptr, *(ptr - 4));
ptr++;
printf("*(ptr + 4) -> %d\n", *(ptr + 35));
return 0;
}
|
400afcc1e64a16e6705b36752a9e4572fa25781b | 546272ae71120357c4d86bdd9da67fb98548ec50 | /MC60_OpenCPU_GS3_SDK_V1.7/include/ql_ble.h | 9fe3449ac452b0d52df11c56dbadaa87b8347618 | [
"MIT"
] | permissive | tomyqg/QuectelMC60OpenCPUProject | c5fe5d01f08265f6e46fa02f81d3843a7e0fd071 | 4048dd09a28ffd712e618f49411f511cee7ef35b | refs/heads/master | 2021-03-12T10:14:19.345068 | 2020-02-17T10:46:34 | 2020-02-17T10:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,109 | h | ql_ble.h | /*****************************************************************************
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* ql_ble.h
*
* Project:
* --------
* OpenC... |
848563a1181355ff4d24ff8dd53ba5bdb3953ca4 | 4b8d45680c9f8b97b1b52919c16285bf5d5afc20 | /Pods/Headers/Public/LTUpdate/LTUpdate.h | 073a203c98ed94be39676ea737e0c55c76f16b90 | [] | no_license | novoland/douban-artist-ios | afec78f039ecf3a173eee9ee54f508e795963b84 | 1e2d3e1afd3bb38580f53904a90e11c070a5ead8 | refs/heads/master | 2021-01-22T08:48:33.939827 | 2014-12-20T15:25:52 | 2014-12-20T15:25:52 | 27,226,320 | 3 | 3 | null | null | null | null | UTF-8 | C | false | false | 37 | h | LTUpdate.h | ../../../LTUpdate/LTUpdate/LTUpdate.h |
9985a6a2896adbfeb2ae0f28b8ca52ec3d8c24fa | b4a27d6caa9ef512af1145796e40fb4a834d257e | /BasicCalculator.c | c8e48ef178358e68f88f989fc93250a3741ee144 | [
"MIT"
] | permissive | A-Chathumini/HackTheOctober-HacktoberFest | 76eaa2164aeee4295d78069f1980ed375d587695 | e5c434e89e13ae288bd0cc201d7d4b29368905a9 | refs/heads/main | 2023-08-14T21:15:43.526791 | 2021-10-05T04:27:44 | 2021-10-05T04:27:44 | 413,156,285 | 3 | 0 | null | 2021-10-03T21:21:04 | 2021-10-03T18:00:26 | null | UTF-8 | C | false | false | 725 | c | BasicCalculator.c | #include <stdio.h>
#include <string.h>
int main()
{
float x;
float y;
char c[100];
printf("Enter First No.:-");
scanf("%f", &x);
printf("Enter Second No.:-");
scanf("%f", &y);
printf("Enter Operation:-");
scanf("%s", &c);
float s = x + y;
float d = x - y;
float p = x * y;
float q = x / ... |
8c9368093e44c5fa7f07a24f4ea29450138e4957 | 8f02750a86d0173e7c7ec620605e0bcbe16e2177 | /Source/Lim.h | de8750c82cc37f233a6eb5f13e658f17fcc8fa5f | [] | no_license | Kosalos/LimMetal | eca6081ebfd524aa713052db2b5f7641d803783a | 67491067ee0556ced5e80c476d4f054ff0382e87 | refs/heads/master | 2021-06-09T18:35:13.053274 | 2021-03-26T03:50:04 | 2021-03-26T03:50:04 | 137,108,737 | 5 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,221 | h | Lim.h | /* -------------------------------------------------------------
Please visit: https://dhushara.com/DarkHeart/quasif/quasi.htm
This app is based on the ideas presented in "Depth First C-script Listing in Colour".
I have done many little things in the process of porting it to the iPad,
but the credit belongs to the ... |
d95b1a18c8198f8d9f47e69e9d23d1965b798794 | 03faa163ab2695171f09a31d678cf38934fe965e | /src/templates/template.h | 74013410ae72fa631e25b74f2dba4c037ae0e5cd | [] | no_license | SebastianRueClausen/Cb | 9be5cfc2987db2b92c56200875c7d9c2676e2f55 | 004c735a88552ea796f321d5de4a5e85c522e905 | refs/heads/master | 2023-02-09T23:48:56.167402 | 2021-01-11T23:26:58 | 2021-01-11T23:26:58 | 290,893,370 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 316 | h | template.h | #ifndef TEMPLATE_DEF_H
#define TEMPLATE_DEF_H
#include <stddef.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
#define TEMPLATE_JOIN(a, b) a##b
#define TEMPLATE_COMBINE(a, b) TEMPLATE_JOIN(a, b)
#define TEMPLATE_SIGNATURE(prefix, name) TEMPLATE_COMBINE(prefix, TEMPLATE_COMBINE(_, name))
#endif
|
b0d9bb74f89688cdde51567b4de23b182a83f083 | bcc1d14bd27aac5b689f2ed42ad71f848a6e8573 | /utils/hi_type.h | 0a2fa24ef30f11cb55c7b98b0ad7cad2999e1260 | [] | no_license | Hansomewang/GuangDongOSD | f91f1e4511b2462306c633fb96aa8f553f5ba042 | af4f8351ed838c4533347957bd79b4be501944be | refs/heads/master | 2020-03-27T02:21:47.250374 | 2018-08-23T01:44:02 | 2018-08-23T01:44:02 | 145,784,125 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 629 | h | hi_type.h | /*
* hi_types.h
* redefine many data types used in many Hi SDK based application.
*/
#ifndef __HI_TYPE_H__
#define __HI_TYPE_H__
typedef unsigned char HI_U8;
typedef unsigned short HI_U16;
typedef unsigned int HI_U32;
typedef signed char HI_S8;
typedef short HI_S16;
typedef int HI_S32;
#if... |
ebc60f2f79d084f81eea7f6e1211da327cf57bdb | 8ac2322aefd84324e6a1d6b3219337545624d853 | /src/gg.c | 6c484b47c141e2a9439afb579fa906009829cb1b | [] | no_license | sdzhao/cole | 3f7289935eb93c4594f8eca6cdb73ec42f23aa2f | d400448dd151ed37eb2a5a9fd2d2c0fd092d6a58 | refs/heads/master | 2022-05-03T10:21:54.093454 | 2022-05-01T02:53:08 | 2022-05-01T02:53:08 | 140,349,219 | 2 | 4 | null | 2022-05-01T02:53:08 | 2018-07-09T22:36:54 | R | UTF-8 | C | false | false | 10,316 | c | gg.c | /* ***************************************************************
gg.c
functions for gaussian sequence problem with gaussian side information
*************************************************************** */
#include <R.h>
#include <Rinternals.h>
#include <math.h>
// bivariate N(mu, S) density
double phi2(double x1,... |
ecef759ddcd718b8ec3cb13297c19836cbd18c49 | 90fcef99d2d7595792cde24274609f57d7ece3de | /位运算符应用/源.c | 08ee4a2dbbf2bc2d369ac500974805e89ca29bd7 | [] | no_license | Cassie866/cpp.practice | f90b49593a61021a8dcd5c232da6a069101339dc | ec17a8133f27ec87e775e1d254b1e6bc6c437719 | refs/heads/master | 2020-07-11T08:10:25.982152 | 2019-10-14T01:38:05 | 2019-10-14T01:38:05 | 204,484,868 | 1 | 0 | null | null | null | null | GB18030 | C | false | false | 524 | c | 源.c | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
/*
返回参数二进制中 1 的个数。
比如:
15
0000 1111
4 个 1
*/
//返回参数二进制中1的个数
int count_one_bits(int value)
{
int count = 0;
for (int i = 0; i < 32; i++)
{
if (((value >> i) & 1) == 1)
{
count++;
}
}
return count;
}
int main()
{
printf("请输入一个数字:\n")... |
4570f4c867e444fa81fa7143e8419cf7192f9c2e | 138cbca484d96709595cac0853c943e4ec229dcc | /239-A/239-A-bug-17085647-17092154/239-A.c | 856344b157d80ceec52410e66e99283220e452d5 | [] | no_license | diogomfreitas/pySBFL | d5432ef720d362efc30342ca799df91e229e32bc | b346eff14dcbe4252a17ffc57b405b16f1716026 | refs/heads/master | 2021-10-16T10:58:50.898876 | 2019-02-10T21:18:24 | 2019-02-10T21:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 240 | c | 239-A.c | #include<stdio.h>
int main(int argc, char *argv[])
{
long long int y,k,n,i,x,count=0;
scanf("%d%d%d",&y,&k,&n);
x=n-y;
for(i=k;i<=n;i+=k)
{
if(i>y)
{
printf("%d ",i-y);
count++;
}
}
if(count==0)
printf("-1");
return 0;
} |
fd5a7b935192f5f4cfd6e1da0af2738f63dd3c3c | 72ca71f3162f3033cc3ce404e6df6866d90d5de2 | /eettA-SM-SIMD.c/squaredme/abbr0h.c | 0fb01688930d66deb5f21bf4b491cf69aa5ecaca | [] | no_license | JNicL/FormCalc-SIMD | a663f82dc6962afaee842a624a88945f1ba5ea9a | 18b59bf5aef8d07a943aa10fdce5161aeeec7de3 | refs/heads/master | 2021-01-10T20:43:28.978068 | 2013-04-12T09:47:59 | 2013-04-12T09:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 5,852 | c | abbr0h.c | #include "vars.h"
#include "inline.h"
void abbr0h() {
#include "vars.h"
#include "inline.h"
F32 = ChainV2(Spinor(1,2),0,ec(5),k(3),1,Spinor(4,2));
F34 = -1*(ChainB2(Spinor(1,2),0,ec(5),k(4),0,Spinor(3,1)));
F9 = -1*(ChainV0(Spinor(4,2),0,0,Spinor(3,1)));
F13 = ChainB0(Spinor(4,2),0,0,Spinor(2,1));
F... |
e51568a44b4b3fcefac93a6b7f7c8ec4e480ccab | 05a4d2bf45b32798d2f6820c4ec001dd8ef13e4a | /tests/unit/conn_cfg/conn_cfg-compl_channel.c | b47f49a3606884093e527625fc53dda48a4bff01 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pmem/rpma | 207ee08f465a22341f92c80b15132a9617e57596 | 93d31224fd69786d4b1ace0084108aa270e4c263 | refs/heads/main | 2023-09-01T05:29:34.609582 | 2023-06-13T12:12:10 | 2023-06-13T12:12:10 | 240,216,867 | 115 | 63 | NOASSERTION | 2023-09-05T14:31:33 | 2020-02-13T08:59:31 | C | UTF-8 | C | false | false | 2,592 | c | conn_cfg-compl_channel.c | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2022, Intel Corporation */
/*
* conn_cfg-compl_channel.c -- the rpma_conn_cfg_set/get_compl_channel()
* unit tests
*
* APIs covered:
* - rpma_conn_cfg_set_compl_channel()
* - rpma_conn_cfg_get_compl_channel()
*/
#include "conn_cfg-common.h"
#include "test-... |
ea192ae65704e42c39c947e7177a69ea83fddadc | 7852a8d5046a23ad92d0982680301996db66f4c4 | /target/dalrcf405/inc/board.h | 8c65fe24f17d9517f89dc2c786cfa5693ee4d35d | [] | no_license | pawelsmyczek/fc_os | e7956f15fe0cb7424e990378e8eda439ffc07cd2 | 8c2d1cc634cefd4b391177465ce613c5f9ee5e1f | refs/heads/master | 2023-07-13T05:55:16.477037 | 2023-03-22T16:52:40 | 2023-03-22T16:52:40 | 213,476,708 | 0 | 0 | null | 2023-03-22T16:49:12 | 2019-10-07T20:09:40 | C | UTF-8 | C | false | false | 1,060 | h | board.h | #ifndef FC_SOFT_BOARD_H
#define FC_SOFT_BOARD_H
#include <gpio.h>
#include <dma.h>
#include <spi.h>
#include <iic.h>
#include <irq.h>
#include <uart.h>
#include <timer.h>
#include <adc.h>
//#define DISCOVERY
struct DMA1Streams
{
io::DMA stream0;
io::DMA stream2;
io::DMA stream3;
io::DMA stream4;
i... |
79871e6453cf8e3b2fb8b432c0679f8aaa8879a8 | 47360f849c2563e359965b1dbc386c00f6617506 | /src/version_bk.h | 923dce454f35274966f25233380c92aeb80c3adb | [] | no_license | bhanug/debugger | be4f7bd0b56591e04d49dd52121139cf80033fed | d46ff574882dd50f767b49a75060c547658fb1e2 | refs/heads/master | 2021-01-17T21:00:09.795368 | 2012-02-05T07:07:31 | 2012-02-05T07:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,388 | h | version_bk.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at
* http://www.opensolaris.org/os/licensing.
* See t... |
08f46d6e149291ab5f824ed62520f14f7ce03c7b | 5629bbefd4e81e62bf1038b8ac67776b5e0951ab | /dabbad/include/dabbad/interface-driver.h | adf5a27c94e80b99c2a3c77f9ecfaf759551ee50 | [
"MIT"
] | permissive | eroullit/dabba | cfa878090f8cef82edddf8fd73be705d335da60a | 83cfbefb7a9b45769e16f8519103ce0229f76e5b | refs/heads/master | 2021-01-18T13:43:00.287013 | 2013-08-29T20:14:48 | 2013-08-29T20:14:48 | 3,068,693 | 1 | 1 | null | 2013-08-24T15:23:00 | 2011-12-29T12:53:35 | C | UTF-8 | C | false | false | 315 | h | interface-driver.h |
#ifndef INTERFACE_DRIVER_H
#define INTERFACE_DRIVER_H
#include <libdabba-rpc/rpc.h>
void dabbad_interface_driver_get(Dabba__DabbaService_Service * service,
const Dabba__InterfaceIdList * id_list,
Dabba__InterfaceDriverList_Closure
closure, void *closure_data);
#endif /* INTERFACE_DRIVER_H */
|
3d0d8391b322a6076cf47d005e244320f2b1d2c8 | 2752b6338dd7890555067faf5e9e448744469295 | /LuaWrap/inc/LuaWrap.h | a75545340aa329ac8cacc1df134f4cb96df3b899 | [
"MIT"
] | permissive | luada/LuaEngine | ff24ad01f16f2116a2e0345a7795c9f5f347d918 | a887a151dc40b50aceb77089f37498381e11e7ff | refs/heads/master | 2020-04-08T19:56:41.208131 | 2018-11-29T14:29:22 | 2018-11-29T14:29:22 | 159,677,409 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 275 | h | LuaWrap.h | #pragma once
#ifdef USE_LUA_JIT
#include "lua.hpp"
extern "C"
{
#include "tolua++.h"
}
#else
extern "C"
{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "lstring.h"
#include "lundump.h"
#include "tolua++.h"
}
#endif // USE_LUA_JIT
|
f6960f94cc4e0a8a9280cb3803206b1d3c71944c | 3c4a181685feece1abdebc2da4a236fc07caca75 | /HW3/xv6/rwlock.h | 8348bc3637f5c4d34c5eb56945217a24a1e7d399 | [] | no_license | mmerler/osgroup | 5f1a25f49649ae98176ff098551512d205170c46 | aedb58dec8d4be3429d63fe915fb7ccdf2131cd9 | refs/heads/master | 2021-01-25T12:07:33.421673 | 2011-04-20T19:09:43 | 2011-04-20T19:09:43 | 1,335,987 | 2 | 3 | null | null | null | null | UTF-8 | C | false | false | 302 | h | rwlock.h | // Added by Jingyue
// Read-write mutexes
#define OP_INIT 0
#define OP_READLOCK 1
#define OP_READUNLOCK 2
#define OP_WRITELOCK 3
#define OP_WRITEUNLOCK 4
#define OP_DESTROY 5
struct rwlock
{
int readcount, writecount, wantsR;
volatile long mutex1, mutex2, mutex3, w, r;
};
|
f13715c7e65494a914968a2884e532a44959ad8e | e4e1e0f1caf19572a2c778bd294abcc74e8d11db | /cython/hello_world.c | 959a6c7fcb9266b3ee6a123f83842b01d128c841 | [] | no_license | westurner/hello_world | 01cd033dbf74a406d57c51674a9c88baaf391f3b | 18b3a872ad3f9d9ab0b3c1a351e0a77df1093d1c | refs/heads/master | 2020-12-25T18:20:42.966513 | 2014-10-24T12:11:58 | 2014-10-24T12:11:58 | 5,734,959 | 0 | 2 | null | null | null | null | UTF-8 | C | false | true | 218,599 | c | hello_world.c | /* Generated by Cython 0.16 on Fri Aug 24 22:51:48 2012 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02040000
#error Cython requires Python 2.4+.
#else
#include <s... |
e78e03f2a2788c885e8db93c29ace1aa95c09aba | 90933bb0f07a145155cf0ad95fa58bbe043e9e82 | /MainCode/prj/app/demo/dvbs/sabbat_dual/osd_three/rsc/bmp/Im_Window_Middle_Left1.h | bcba076dac4d354471a13a66a95d81f7167f5a3a | [] | no_license | digrobot/ali3602 | b333209d304970e5e30687d7ea6877a7a3bbf64b | a11fab525a28f89b77ec49c2ad266ae5943288ac | refs/heads/master | 2017-10-03T08:40:13.684238 | 2014-11-03T20:06:26 | 2014-11-03T20:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,507 | h | Im_Window_Middle_Left1.h | /*
D:\OSD Generate Tool\3_bmptobin_sub_bmp\Im_window_middle_left1.h
bmp file size: 4680
bmp data offset: 1078
bmp data width: 60
bmp data height: 60
bmp data size: 3600
RLE bmp data size: 240
*/
const unsigned char Im_window_middle_left1[] __attribute__((section(".flash"))) =
{
0x06,0x08,0x36,0x42,0x06,0x08,... |
d8c8bcb76e31e42477020f37682fc0be6fd9c7b0 | 5e92b3885d8914b6db1053090a2b054002e56248 | /libft/ft_memcpy.c | 6780fbf24e2048ece2af3b9cc4e5229f3311e001 | [] | no_license | deds129/cub3d-linux_2 | 628a0a8c461b7cdd91df2cf57a82aca8f5dbddbe | 86ce0394e63695fda3bdfa54e6217bc7a9d25e97 | refs/heads/main | 2023-03-29T03:47:56.278063 | 2021-04-07T13:56:39 | 2021-04-07T13:56:39 | 350,346,137 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,217 | c | ft_memcpy.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memcpy.c :+: :+: :+: ... |
8255fe81f9bcd6f4327bc23f01c14d5f69fd1c74 | 60a15a584b00895e47628c5a485bd1f14cfeebbe | /controls/VTDesign/jdraw/types.h | fbcf396fd315cb2238d733c13204635d9da35f70 | [] | no_license | fcccode/vt5 | ce4c1d8fe819715f2580586c8113cfedf2ab44ac | c88049949ebb999304f0fc7648f3d03f6501c65b | refs/heads/master | 2020-09-27T22:56:55.348501 | 2019-06-17T20:39:46 | 2019-06-17T20:39:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,008 | h | types.h |
#ifndef __TYPES_H__
#define __TYPES_H__
enum BorderType {
btEdgeNone = 0,
btEdgeRaised = 1,
btEdgeSunken = 2,
btEdgeEtched = 3,
btEdgeBump = 4
};
enum FlipType {
ftNormal = 0,
ftPositive = 1,
ftNegative = 2
};
enum PositionType
{
ptLeft = 0,
ptRight = 1,
ptTop = 2,
ptBottom = 3
};
... |
b3c93a345e787d5a737d6a8f3f6aba8ddcdb5b19 | 5d88e926f1466f70029d2ba8c67ce0fa6402dbc6 | /inc/pipex.h | 6bdccb0b8d27e7e7c842c3d2ca744f38a2ef479d | [] | no_license | ahrytsen/rush_pipex | 911598d8370d1e2bc2a310882ac648273fa8e837 | 269705686fc09a6527261215f257699ba560bd21 | refs/heads/master | 2020-03-23T16:56:48.230677 | 2018-07-22T15:11:17 | 2018-07-22T15:11:17 | 141,834,784 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,175 | h | pipex.h | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pipex.h :+: :+: :+: ... |
e66ab25a2c8ca46d555710b9fc2116b6ba26e6ec | 8413273bab84228dad6ff5247f6d581b7796d142 | /thirdparty/roxml/src/roxml_buff.c | 270ad9d38422b3bd47c57c671425ebc715337ab9 | [] | no_license | pdpdds/yuzaos | 91b6f5bb51583da3827594489fc700821bc5cd6a | ce3b6d0907f7be470fcbc408382a20e2b75e9ef2 | refs/heads/master | 2023-05-01T09:51:21.007740 | 2023-04-27T08:37:42 | 2023-04-27T08:37:42 | 289,303,507 | 28 | 5 | null | 2021-03-20T14:58:37 | 2020-08-21T15:30:10 | C | UTF-8 | C | false | false | 1,258 | c | roxml_buff.c | /**
* \file roxml_buff.c
* \brief buffer XML document backend
*
* (C) Copyright 2014
* Tristan Lelong <tristan.lelong@libroxml.net>
*
* SPDX-Licence-Identifier: LGPL-2.1+
* The author added a static linking exception, see License.txt.
*/
#include "roxml_core.h"
#include "roxml_parser.h"
#include "roxml_intern... |
dec6b44e2bc77f4f27f6ba8161a3790f82101dc6 | 4264fc7e5ca86e3ebb72d779b76f67a9d1a947b6 | /dev/gcc/testcase/t00004.c | 25f251ee10f2563a13668c2abf1243522b66e57a | [] | no_license | alandohf/poonzref | a69cff823ffa6f4b666a4fb1af03558094ca2433 | 60d6fe6b0334ca40e330875e5047ebd221e8a79f | refs/heads/master | 2016-09-05T19:37:42.747748 | 2012-04-24T08:39:39 | 2012-04-24T08:39:39 | 33,358,906 | 0 | 0 | null | null | null | null | GB18030 | C | false | false | 2,856 | c | t00004.c | /**
test static
但有时候我们需要在两次调用之间对变量的值进行保存。通常的想法是定义一个全局变量来实现。但这样一来,变量已经不再属于函数本身了,不再仅受函数的控制,
给程序的维护带来不便。
静态局部变量正好可以解决这个问题。静态局部变量保存在全局数据区,而不是保存在栈中,每次的值保持到下一次调用,直到下次赋新值。
为什么要引入static
函数内部定义的变量,在程序执行到它的定义处时,编译器为它在栈上分配空间,大家知道,函数在栈上分配的空间在此函数执行结束时会释放掉,
这样就产生了一个问题: 如果想将函数中此变量的值保存至下一次调用时,如何实现? 最容易想到的方法是定义一个全局的变量,
但定义为一个全局变量有... |
e25fc9e6c78f91f6e4cea0670e9e28d731d174f5 | 4913b1b3e18f3cc95ed725e56730db5b976ef069 | /dietel/tabular_output.c | 4d74c0b9ab2f8939cebbf0113c8a2fe3663af9e6 | [] | no_license | elaiyarasan/c | 017af964a5e118e1efd5fe9974e91aedcab4061c | 248bec286b459421d4bf048afb8be03ebc118218 | refs/heads/master | 2020-03-14T07:16:51.054096 | 2019-01-31T03:15:51 | 2019-01-31T03:15:51 | 131,501,475 | 0 | 1 | null | null | null | null | UTF-8 | C | false | false | 517 | c | tabular_output.c | /*3.26 (Tabular Output) Write a program that utilizes looping to produce the following table of
values:
A A+2 A+4 A+6
3 5 7 9
4 6 8 10
*/
#include<stdio.h>
int main()
{
int A,i,j,k,l,m;
printf("Enter the A value\n");
scanf("%d",&A);
printf("A A+2 A+4 A+6\n");
printf("%d",A);
for(i=2;i<4;i+=2)
{
... |
f7c5e8cab1b4638efd3def6a50d2d59fa1322fd1 | 436b06504095f97bb24257125379a4ed278b90e4 | /libplot/drivers/bitgraph/bg.h | 1ff860c9572cb9086b65bcd29fb38580a14d8cae | [
"BSD-4-Clause-UC",
"BSD-4-Clause"
] | permissive | Toranktto/bsd-plotutils | 2ec907f224e90cf2cebe13c95b245fa0295df86b | 1dffe7723892d8d75a07f5026d0e5d2c58b9979d | refs/heads/master | 2023-02-03T07:37:00.324961 | 2023-01-24T20:17:38 | 2023-01-24T20:17:38 | 142,710,561 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 476 | h | bg.h | /*
* Displays plot files on a bbn bitgraph terminal.
*/
#include <math.h>
#include <plot.h>
#include <stdio.h>
#include <stdlib.h>
#define ESC 033
#define PI 3.141592659
/* The graphics address range is 0..XMAX, 0..YMAX. */
#define XMAX 768
#define YMAX 1024
#define scaleX(xi) ((int)((xi - lowx) * scale + 0.5))
#d... |
191f47bf91d2ec6f4ebf2fdaa3ef265b0ab27d16 | fe917de521a38cb2e54c303a6bc2f508b0ae9716 | /ts/ts1.c | 5d0ebba530c78c345bc348ab03c32e83472d2a66 | [] | no_license | puped0/embedded-system-lecture | 333d480d9aff60bf670d7e4442e9871a18ee7a26 | 40a29765dc7236f3c01867a6babe20b9e02d4c01 | refs/heads/main | 2023-06-18T06:30:38.909334 | 2021-07-15T15:31:05 | 2021-07-15T15:31:05 | 384,170,535 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 540 | c | ts1.c |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/input.h>
int main()
{
int fd;
struct input_event ie;
int x=0,y=0,pressure=0;
fd = open("/dev/input/event4", O_RDWR);
if(fd<0) return -1;
while(1)
{
read(fd, &ie, sizeof(struct input_event));
if(ie.type==3)
{
... |
b6b00bf2f6b5c9dc64758ba82886661059b4b677 | bd8d9364309d69217a8171e1cf27f2de26e26e28 | /algorithms/dataStructures/stack.c | 85d5be90e14e123b1b17e1a029def13b8c5184c4 | [] | no_license | zsmn/competitive_programming | 5a0981114cf4ed592f69b9246cca8f3549354056 | 259d67c8f9a4d1f4db0dbf8111ab54abdf0fbd31 | refs/heads/master | 2022-11-12T21:55:31.157354 | 2022-10-31T23:38:13 | 2022-10-31T23:38:30 | 154,896,004 | 8 | 17 | null | 2022-10-31T23:38:31 | 2018-10-26T21:23:23 | C++ | UTF-8 | C | false | false | 3,489 | c | stack.c | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
/*
Nessa struct nós criamos o nó (Link), onde temos um elemento
e um ponteiro que vai apontar para o próximo elemento.
*/
typedef struct link{
int element;
struct link *next;
} Link;
/*
Agora criamos a struct da stack, temos um nó (Link... |
441e541b20d7ff0cf75898315f6cea981b768e86 | 8609a8072273b04d97455fee8e448900609968d9 | /src/lora_radio_sx1272.c | a64779a1f4a4c68e235d0f0c4e1a68efd1064fea | [
"MIT"
] | permissive | gost-serb/lora_device_lib | 42b4ea53d8c6e3d5b2a5688d885a6b36353ae31c | 1aa92999ce7d90bf726d2fee26cce9b621ab365e | refs/heads/master | 2021-09-08T19:06:51.173170 | 2018-03-10T14:50:08 | 2018-03-10T14:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 12,162 | c | lora_radio_sx1272.c | /* Copyright (c) 2017-2018 Cameron Harper
*
* 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, p... |
1023f93d4506a4f544c23dc8f962c1ac196fb8df | 976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f | /source/freebsd/sys/dev/acpica/extr_acpi_perf.c_acpi_px_available.c | 8e54276ecd28a30c9b5574f5a31c771e4ee946ad | [] | no_license | isabella232/AnghaBench | 7ba90823cf8c0dd25a803d1688500eec91d1cf4e | 9a5f60cdc907a0475090eef45e5be43392c25132 | refs/heads/master | 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,509 | c | extr_acpi_perf.c_acpi_px_available.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... |
7aea28c0c86319c7b25b6fb8dc533424867c0e3d | 06486020f7d4f8245250e716073e2039cd8ef840 | /Pia-no-dash/project.IOs/Project.IOs/Classes/Native/System_System_Text_RegularExpressions_Syntax_Assertion.h | fecf0ea41a80011dc72eda6410834dc7d3ea8ce1 | [] | no_license | hoangwin/2-ca-rs-tim-berman | df95d958c82cf8b8f4172b2c2d49cd6c294100f4 | 1470153378864b77237196be7f1ca9e2809e8998 | refs/heads/master | 2021-01-09T20:48:17.806165 | 2016-07-07T08:17:52 | 2016-07-07T08:17:52 | 39,478,909 | 3 | 1 | null | null | null | null | UTF-8 | C | false | false | 287 | h | System_System_Text_RegularExpressions_Syntax_Assertion.h | #pragma once
#include <stdint.h>
// System.Text.RegularExpressions.Syntax.CompositeExpression
#include "System_System_Text_RegularExpressions_Syntax_CompositeExpres.h"
// System.Text.RegularExpressions.Syntax.Assertion
struct Assertion_t1300 : public CompositeExpression_t1293
{
};
|
6ab322a3c58942d919c3ef8fc85a6c777cc694e9 | 83326108ecae82854a8d0e9522661ccaa95fa44a | /shell1.c | 7d1dc135d5d42f535cf83f024c346b275ca4bb0f | [] | no_license | Nabagata/OSLab | 85f1aac03f233d9e1c384507720f9bc5dec84629 | 73d7eacf263c1075111626e8def15d7ab1373000 | refs/heads/master | 2021-06-27T14:23:48.346672 | 2020-09-24T17:55:01 | 2020-09-24T17:55:01 | 145,396,876 | 2 | 1 | null | null | null | null | UTF-8 | C | false | false | 1,114 | c | shell1.c | #define _APUE_H
#define _XOPEN_SOURCE 600
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/termios.h>
#ifndef TIOCGWINSZ
#include <sys/ioctl.h>
#endif
/* some systems still require this */
/* for winsize */
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#in... |
839ad243121be033c36bea787ee12884940408a7 | 303213696ceb3af098c1c88d92cbdb597eef6991 | /ft_ls/padding.c | 35b3cf5625cd4b1f5516b4420e94715ba8cf8c71 | [] | no_license | qdiaz/42_projects | 02efff63e976e081b703ff4a57a357d1b899a34d | 16af33eb5567378b4eb901e49c4b77622a5c5e96 | refs/heads/master | 2020-05-21T12:30:23.495291 | 2018-03-26T15:58:02 | 2018-03-26T15:58:02 | 47,341,296 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,096 | c | padding.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* padding2.c :+: :+: :+: ... |
6b9e81e9b004ccc64e7ff0f295ac3865bd805d65 | 932530f9e39384f26b77b64a28f62f861d46cc26 | /CODE/C/day12/04hong.c | a860c62b87338ebc94c69d17856972ef233e1b77 | [] | no_license | LuuuuuG/TarenaNotes | 9a8f5ea6a1b50bbe6fbc00ebf3d427f8982001c0 | 5ba29fea27472a2368e7d888897437b066e1429f | refs/heads/master | 2021-01-20T02:42:05.559101 | 2017-04-26T05:48:37 | 2017-04-26T05:48:37 | 89,442,222 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 197 | c | 04hong.c | #include <stdio.h>
#define SUB(a,b) ((a) - (b))
int main(){
printf("result is %d\n",SUB(10,7));
printf("result is %d\n",20 - SUB(10,7));
printf("result is %d\n",SUB(20,10 - 7));
return 0;
}
|
dbd50b85a96e1e7caa51c936da3ae4c4b5313d65 | 0ae7d27cde324518c52d74d459cde764cdb416d2 | /SOURCES/rtclk.h | 6bbf2a0aeca4416c2dac016034ca04f1cd6c196c | [
"MIT"
] | permissive | PhylumChordata/RTM-Z80 | 343fd7cff64a258b73e8773199556e83b1133686 | 13ea9667f020cdc69e6e8d18b7588e5d9f4513e5 | refs/heads/main | 2023-07-30T02:35:27.492836 | 2021-09-22T10:40:45 | 2021-09-22T10:40:45 | 396,076,162 | 0 | 0 | null | 2021-08-14T17:14:41 | 2021-08-14T17:14:40 | null | UTF-8 | C | false | false | 445 | h | rtclk.h | struct RTClkCB {
struct ListElement link;
short Counter;
struct Semaphore* pSem;
short CounterCopy; /* 0 = no repeat */
};
short GetTimerSts(void* Timer);
void* MakeTimer(void);
void* StartTimer(struct RTClkCB* Timer, struct Semaphore* pSem, short Ticks, char Repeat);
short DropTimer(struct RTClkCB* ... |
8d37ae18dc0848e3df2eb64b8a570df0328d55c0 | 665eac2bfd0d2f1d559f485375f89e8a91632c6e | /VOL_300/344_02/VMKS.C | 54242f769ad8e999833fa34f6ae1f6c513cfd512 | [] | no_license | kubohisa/CUGL | 615c29732e5fc2c6bcb29a4013be3351dc21dda6 | 75fc7cb2f8c5f3869a091b2b5c50c09323bc1c03 | refs/heads/main | 2023-03-15T16:19:49.355867 | 2020-10-02T21:19:00 | 2020-10-02T21:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,291 | c | VMKS.C | /*
HEADER: ;
TITLE: BASIC mks() function in C
VERSION: 1.0;
DESCRIPTION: performs BASIC mks() function, packing a value into
a string of 4 chars
KEYWORDS: packed, single precision, BASIC, mks;
SYSTEM: Xenix 3.4b, MSDOS;
FILENAME: vmks.c
WARNING... |
487ff72d4fbad82a7ec18eab71ec43c4e1cb26b2 | 032122f0a1848d48cfd16dd94357bf92eaf4af23 | /leetcode/872_leaf-similar_trees.h | 3f0844cd89d5779cf7c6323a2385de1953e0e821 | [] | no_license | runningrunning/wasteland | 380510a0074b19bcd281ad3711cf43cbd30a5070 | f25148816cfe3ae0709e795be2a69e55630975f2 | refs/heads/master | 2023-03-11T03:01:13.794859 | 2021-02-26T08:50:11 | 2021-02-26T08:50:11 | 184,945,993 | 2 | 0 | null | null | null | null | UTF-8 | C | false | false | 761 | h | 872_leaf-similar_trees.h | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* struct TreeNode *left;
* struct TreeNode *right;
* };
*/
bool ls(struct TreeNode* r, int* m, int* i, int mi)
{
if (!r->left && !r->right)
{
if (!mi)
m[*i] = r->val;
else if (r->val != m[*i])... |
eb7e14212b12b69a1bed4d6ec36e364c08a46e74 | 376040d6ce67354c783d61edeb14c1d7059ed0b4 | /test/python/Avro/dump_pairs.c | b0096b3f38c28a814324bea6df3cb7ab0f42dff3 | [] | no_license | panluo/learn | 8140af4b274ce858637d6b82dc6558957e4a2ba6 | ca03fc00a34d7603909dd80a90e7d72290374485 | refs/heads/master | 2021-01-25T04:58:00.503329 | 2015-03-20T08:28:15 | 2015-03-20T08:28:15 | 23,575,530 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 915 | c | dump_pairs.c | #include </include/avro.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]){
if(argc != 2) {
fprintf(stderr,"Usage : dump_pairs <data_file>\n");
exit(EXIT_FAILURE);
}
const char *avrofile = argv[1];
avro_file_reader_t filereader;
avro_schema_error_t error;
... |
d055c94b378b34ec893e7e71574ff31c0b003c55 | 777a75e6ed0934c193aece9de4421f8d8db01aac | /src/Providers/UNIXProviders/SoftwareFeatureSAPImplementation/UNIX_SoftwareFeatureSAPImplementationDeps.h | 378fb7bd427ca97b78836bce114235a33f5a7df8 | [
"MIT"
] | permissive | brunolauze/openpegasus-providers-old | 20fc13958016e35dc4d87f93d1999db0eae9010a | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | refs/heads/master | 2021-01-01T20:05:44.559362 | 2014-04-30T17:50:06 | 2014-04-30T17:50:06 | 19,132,738 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 915 | h | UNIX_SoftwareFeatureSAPImplementationDeps.h |
#if defined(PEGASUS_OS_HPUX)
# include "UNIX_SoftwareFeatureSAPImplementationDeps_HPUX.h"
#elif defined(PEGASUS_OS_LINUX)
# include "UNIX_SoftwareFeatureSAPImplementationDeps_LINUX.h"
#elif defined(PEGASUS_OS_DARWIN)
# include "UNIX_SoftwareFeatureSAPImplementationDeps_DARWIN.h"
#elif defined(PEGASUS_OS_AIX)
# include... |
72c2c6f6c22632623c105566a35a745209390f76 | b73012896cef6719c7a5851784c4224ada55a4b2 | /main.c | 61e1ec77b1fc4dd2fb21032b4e8604c2251e2c25 | [] | no_license | NovaDesignedIt/Linked-Lists-C | 33dca1ba4fe72c55987691d59a8da0bcffa6b190 | 4082416cff0d031fdc3701bc2ad37bd87dde01a0 | refs/heads/master | 2022-12-06T12:29:34.438948 | 2020-08-13T16:07:58 | 2020-08-13T16:07:58 | 287,324,473 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 5,020 | c | main.c |
/*
* Title: Assignment 2 - Student Registration System
* w/ Linked List, Ansi-sytle
* Course: CST8234 - C Language
* Term: Summer 2020
*
* Team:
* Student #1: <<< Meech Lamirande lami0039 >>>
* Student #2: <<< Mohit Nargotra narg0001 >>>
* Status:
* Requirement #1: {complete}
* Requirement #2: {complete}
* Requirement... |
1492efafcf7ca5c57f03872eb7da42e7e8d7e796 | eca0874d4d9b8770067ff5193b49b7f5f0db501e | /solo-projects/bburnley/tutorials/shell/srcs/main.c | e8bb86fb7c24f71d67289b515d5a68d3c7179bf5 | [] | no_license | 42rejects/c-sync-swim-december | 88fc11077d87c7754512520f8e29dab037e0156a | 568c44b6efe935764310baa7d7d30008a268f875 | refs/heads/master | 2020-06-12T12:02:15.875515 | 2016-12-15T20:03:14 | 2016-12-15T20:03:14 | 75,581,110 | 0 | 1 | null | 2016-12-17T05:17:50 | 2016-12-05T02:29:00 | C | UTF-8 | C | false | false | 421 | c | main.c | /*#############################################################################
# Name: main.c
# Created: 12-06-2016 16:54:15
# Edited: 12-07-2016 11:07:29
# Creator: Brian Burnley
# Editor: Brian Burnley
##############################################################################*/
#include "shell.h"
int main(... |
7a602ad4a68377ada45e4a0d3a8e4c4a9a6b8db7 | 976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f | /source/fastsocket/kernel/drivers/input/mouse/extr_trackpoint.c_trackpoint_sync.c | 13d081b09915067cc85b07cc4792e5a386019d9f | [] | no_license | isabella232/AnghaBench | 7ba90823cf8c0dd25a803d1688500eec91d1cf4e | 9a5f60cdc907a0475090eef45e5be43392c25132 | refs/heads/master | 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,980 | c | extr_trackpoint.c_trackpoint_sync.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... |
654e75700b7be5c54c7407340e4b65fed750a074 | d621349afae0561652ac2851b34b197fbba5f275 | /src/go_fdw.c | e75f16f8112449413e3b530a65dca5a84395d015 | [
"MIT"
] | permissive | jangwonpark74/k8s-fdw | e839528365ec6e7d446b1e6b47bf676bb1066b28 | be8b6d031740245d0b616516467e302262385c4e | refs/heads/master | 2020-04-14T04:10:48.463463 | 2018-12-01T04:56:23 | 2018-12-01T04:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 4,159 | c | go_fdw.c | /*-------------------------------------------------------------------------
*
* go_fdw.c
* HelloWorld of foreign-data wrapper.
*
* written by Wataru Ikarashi <wikrsh@gmail.com>
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/elog.h"
#include... |
68d454ee8080235f9214b50d46aee137e4775ebc | 00696f38e834fb0af02ca9476f056799eb892787 | /Src/main.c | a2f962240f37e0671113bb4a49b9a0d91f9d884e | [] | no_license | phckopper/FlyingMachine | 54db8996e4f69c5b161ee1a8a7b191173b9c5b8c | 493328eff62f6a40cc041d52d5388e605d7cbbf9 | refs/heads/master | 2021-04-27T00:19:44.022328 | 2018-03-11T03:56:13 | 2018-03-11T03:56:13 | 123,794,630 | 1 | 1 | null | null | null | null | UTF-8 | C | false | false | 14,391 | c | main.c | /**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are not ... |
30309b709c764a7d88cf6cd0db97e679f8c732e7 | 1af179e1c8b3892e17a357a0d607d2b7a813f79f | /mod3/task1.c | c79a12d3a5dc1e509e662e614f218e832a5fb203 | [] | no_license | seanduback/cs2250Sp18 | 36ecad66e79b906fc36aae9aa721f0bbecc851b3 | 1cdbeedf53b30cd6e01c257304555018a773ddde | refs/heads/master | 2021-05-09T19:17:38.404782 | 2018-04-19T10:07:49 | 2018-04-19T10:07:49 | 118,635,730 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,063 | c | task1.c | /*
* =====================================================================================
*
* Filename: task1.c
*
* Description: Calculate BMI
*
* Version: 1.0
* Created: 01/23/2018 08:30:38 AM
* Revision: none
* Compiler: gcc task1.c -o task1 -lm
*
* Author... |
3ac5cdc8c0832b5fc0a48f8ffe95368b7180d7d7 | 600d4d6c70a06818b36f0e6fed5356b2798f751a | /2018/Day02/ex00/ft_print_alphabet.c | d77dc2d738eaed2c01e083e28effaec3babd9b53 | [] | no_license | pvanderl/CodingSchool19_piscine | 2ae40c52e0bfa04ec92d69206ecaacf90b91d148 | a4a39ccc3b1cb6aaa0ea6cf2c84f271c66f1195a | refs/heads/master | 2020-03-25T11:32:37.390987 | 2019-08-13T14:30:52 | 2019-08-13T14:30:52 | 143,736,843 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,043 | c | ft_print_alphabet.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_alphabet.c :+: :+: :+: ... |
f32b134a12034d47548958f987d27794bcbca03b | 69be6e821ba8ca805cd2459f2c16527d87d4bbe5 | /C00/Attempt01/ex03/ft_print_numbers.c | fc32de62b133401e26fc281bfe5b9e5702740ab4 | [] | no_license | alexrowe99/42-piscine | c01e575e0f6b5d736b191e3a356015ca668ffd2c | 64c1beac45c7c13ddc25717e1bfe41959e0785ce | refs/heads/main | 2023-06-16T22:32:00.748099 | 2021-07-13T07:17:44 | 2021-07-13T07:17:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 116 | c | ft_print_numbers.c | #include <unistd.h>
void ft_print_numbers(void)
{
char *digits;
digits = "0123456789";
write(1, digits, 10);
}
|
16b1f1dd9b0fbf4149cdb92e97a0d3c185408544 | 02dba6d2c92123f3a21ecb2f316357e65f245f7c | /src/user/trains/track_position_server.c | 941543e2a7324ba51cc99de6465df9781a18c6e5 | [] | no_license | bkonyi/BaDOS | 6ee7f0d902cda1ea1eaa0da9454f2ec71bab2e78 | db47cb7d3e51e769a905951db0181acf62125545 | refs/heads/master | 2020-03-28T19:51:49.075414 | 2015-08-18T19:30:29 | 2015-08-18T19:30:29 | 149,016,391 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 9,642 | c | track_position_server.c | #include <trains/track_position_server.h>
#include <io.h>
#include <track_data.h>
#include <servers.h>
#include <queue.h>
#include <trains/train_server.h>
#include <terminal/terminal.h>
#include <terminal/terminal_debug_log.h>
#include <trains/track_reservation_server.h>
#define TPS_SENSOR_MESSAGE_SIZE SENSO... |