text
stringlengths
3.08k
10.5k
// Here's my iteration of the Hangman code. My approach to this is to // count the amount of correct letters contained in the word. // If you feel this code needs to be corrected, don't hesitate // to do so. #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #define HANGED 6 #ifd...
/* * Copyright 2012 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
/* * filter graphs * copyright (c) 2008 <NAME> * copyright (c) 2007 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 t...
#include "cachelab.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <errno.h> #define max_line_sz 60 #define max_addr_sz 17 typedef struct Cacheblock{ struct Cacheblock *prev; struct Cacheblock *next; long tag; char valid; }Cacheblock; void unix_error(char *m...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "v1_scale.h" v1_scale_t *v1_scale_create( char *api_version, char *kind, v1_object_meta_t *metadata, v1_scale_spec_t *spec, v1_scale_status_t *status ) { v1_scale_t *v1_scale_local_var = malloc(sizeof(v1_scale_t)); if...
/***************************************************************************//** * @file * @brief BT mesh scene client module ******************************************************************************* * # License * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b> *******************************...
/** * Afrimesh: easy management for B.A.T.M.A.N. wireless mesh networks * Copyright (C) 2008-2009 Meraka Institute of the CSIR * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redist...
/* The Computer Language Benchmarks Game * http://benchmarksgame.alioth.debian.org/ * * contributed by <NAME> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) #define unlikely(x) __builtin_expect((x), 0) #define IM 139968 #define IA 3877 #define IC 29...
/* Assembler macros for i386. Copyright (C) 1991-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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;...
/***************************************************************************** * * test_bond_fene.c * * Edinburgh Soft Matter and Statistical Physics Group and * Edinburgh Parallel Computing Centre * * (c) 2014-2017 The University of Edinburgh * * Contributing authors: * <NAME> (<EMAIL>) * ***********...
/* * distsbr.c -- routines to do additional "dist-style" processing * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> #include <fcntl.h> #include <h/utils.h> static int ...
#include "paging.h" extern void load_page_directory(uint32_t* page_directory); extern void enable_paging(void); extern void enable_ring0_write_protect(void); /* Relevant Intel manual on 32 bit paging: https://web.archive.org/web/20151025081259/http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-...
/* FUSE: Filesystem in Userspace Copyright (C) 2001-2007 <NAME> <<EMAIL>> This program can be distributed under the terms of the GNU GPL. See the file COPYING. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> static char *progname; static char *xstrdup(co...
#include "debug.h" #include "http_errors.h" #include <stdio.h> #include <string.h> #include <unistd.h> char Resp100[] = "HTTP/1.1 100 Continue\r\n"; char Body100[] = ""; char Resp304[] = "HTTP/1.1 304 Not Modified\r\n"; char Resp400[] = "HTTP/1.1 400 Bad Request\r\n"; char Body400[] = "<html><body>I did not unders...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <conio.h> #include <windows.h> #include <stdbool.h> #define SPEED (50) // 20fps max #define USE_CHARACTERSET (1) #define SCREENX (80) #define SCREENY (45) int buffer = 0; int isInRange(int i, int j); void dxcircle(int...
#undef UNICODE // ## Not Yet #include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <windows.h> #include <wincrypt.h> #define MS_DSS_TYPE "DSS Signature" #define MS_DH_TYPE "DSS Signature with Diffie-Hellman Key Exachange" #define PROVPATH "SOFTWARE\\Microsoft\\Cryptography\\...
/*- * Copyright (c) 2008 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
#include <math.h> void ContactHessian(CH, q, qdot) double CH[6]; double q[7]; double qdot[7]; { double t1; double t10; double t11; double t112; double t12; double t126; double t15; double t16; double t18; double t2; double t20; double t22; double t23; double t24; double t25; double t26; ...
#include <stdlib.h> #include <stdio.h> #include <setjmp.h> #include <assert.h> #include <caml/mlvalues.h> #include <caml/memory.h> #include <caml/alloc.h> #include <caml/custom.h> #include <caml/fail.h> #include <caml/bigarray.h> #ifdef LIBJPEG #include <jpeglib.h> static void ojpeg_init_source(j_decompress_ptr dec)...
#include "config.h" /*============================================================================= // // This software has been released under the terms of the GNU General Public // license. See http://www.gnu.org/copyleft/gpl.html for details. // // Copyright 2002 <NAME> <EMAIL> // //=============================...
#include "clar.h" #include "editor.h" #include <termbox.h> #include "buf.h" #include "buffer.h" #include "window.h" #include "util.h" static struct editor *editor = NULL; static char *type(const char *keys) { editor_send_keys(editor, keys); return editor->status->buf; } void test_options__initialize(void) { ...
/*********************************************************************** * pc_pgsql.h * * Common header file for all PgSQL pointcloud functions. * * PgSQL Pointcloud is free and open source software provided * by the Government of Canada * Copyright (c) 2013 Natural Resources Canada * ******************************...
/*- * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copy...
/* -------------------------------------------------------------------------- * * File atx_imgdec_ATITC.c * Description The ability to decode ATITC images to the ATX_imgdec extension. * Author <NAME> * * ---------------------------------------------------------------------...
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * *...
/* std_hashvalue.c - Helpers used by std::Hash() Copyright (c) 2010-2011 <NAME> Alore is licensed under the terms of the MIT license. See the file LICENSE.txt in the distribution. */ /* This file contains an implementation of identity-based hash values. Tables are used to map pointers to hash values. Ca...
/* * GStreamer * Copyright (C) 2010 <NAME> <<EMAIL>> * * 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, modi...
/* $Header: /home/schj/src/vamps_0.99g/src/ts.lib/RCS/ts_time.c,v 1.5 1999/01/06 12:13:01 schj Alpha $ */ /* $RCSfile: ts_time.c,v $ * $Author: schj $ * $Date: 1999/01/06 12:13:01 $ */ /*F:ts_time * Functions to support conversions between Julian day number and C * broken down time. Note that the Julian day n...
/** * 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...
/****************************************************************************** * Copyright (c) 2019 <NAME>. (<EMAIL>) * * SPDX-License-Identifier: Apache-2.0 * * Module to generate breath excitation for wind instruments. */ #include "ggm.h" #include "osc/osc.h" /************************************************...
/* * libid3tag - ID3 tag manipulation library * Copyright (C) 2000-2004 Underbit Technologies, Inc. * * This program 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 2 of the License,...
#include <ccan/net/net.h> #include <ccan/net/net.c> #include <ccan/tap/tap.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <err.h> static int server(int protocol, int type) { int sock; union { struct sockaddr addr; struct sockaddr_in ipv4; struct sockaddr_in6 ipv6; } addr; socklen...
/************************************************************************ * NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” * * Copyright (c) 2020 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved....
/* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */ /* * Copyright (C) 2013 <NAME> <<EMAIL>> * * 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 restrict...
/* * apt-spy (c) <NAME>, 2003. * This software is licensed as detailed in the COPYRIGHT file */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <libgen.h> #include <sys/types.h> #include <sys/stat.h> #include "include/global.h" #include "include/file.h" ...
/* * Copyright (c) 2009 <NAME> * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #include <sys/types.h> #include <lk/err.h> #include <lk/reg.h> #include <lk/debug.h> #include <kernel/thread.h> #include <kernel/spin...
/* * Common helper functions for kprobes and uprobes * * Copyright IBM Corp. 2014 */ #include <asm/kprobes.h> #include <asm/dis.h> int probe_is_prohibited_opcode(u16 *insn) { if (!is_known_insn((unsigned char *)insn)) return -EINVAL; switch (insn[0] >> 8) { case 0x0c: /* bassm */ case 0x0b: /* bsm */...
/* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-1999 by Internet Software Consortium * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission n...
/* * * Copyright (c) 2016 <NAME>, Inc. * All rights reserved. * * 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...
/* * cacheattr.c: MTRR and PAT initialisation. * * Copyright (c) 2008, Citrix Systems, Inc. * * Authors: * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free...
#include <assert.h> #include <stdint.h> #include "../../inc/vita/container/str.h" void print_str(void *ptr, size_t i); int main(void) { const str_t static_s = str_make_on_stack("hello, world"); assert(str_equals(cstr(&static_s), "hello, world")); assert(str_starts_with(cstr(&static_s), "hello")); ass...
/** * @file ultrasonic.c * @brief Implements functions for maxbotix ultrasonic sensors and senix * toughsonic sensors subroutines * @author <NAME>, <NAME>, <NAME>, <NAME> * @version TODO * @date 2017-06-19 */ #include "ultrasonic.h" // Provide power to the ultrasonic sensor uint8 ultrasonic_power_on(uint8 whic...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2013-2014 Intel Corporation. All rights reserved. * * * 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; ei...
#include<p33FJ128MC804.h> #include<stdio.h> #define DATA_SIZE 23 #define CONST_1 0.005493 int set_clock_settings(void); int uart_settings(void); void configure_PPS(void); void configure_ADC(void); unsigned int adc_sample(unsigned char channel); int configure_TIMER_T1(void); // roll pitch and yaw => rpy volatile unsi...
#include <stdio.h> #include <stdlib.h> /////////////////// ESTRUCTURAS /////////////////////// typedef struct _nododl{ int info; struct _nododl *next; struct _nododl *prev; }nododl; typedef struct _lista{ struct _nododl *inicio; struct _nododl *fin; }lista; ////////////////// PROTOTIPOS ////////...
/* A FIFO data structure designed for a threading context with one producer and * one consumer, using no semaphores or mutexes. * * - pop() returns the oldest element in the fifo * - push(int) adds an element to the end of the fifo * * This FIFO is backed up by a file on the system so that the producer and * co...
/* * This files contains routines for getting the "next" token. */ #include "../preproc/preproc.h" #include "../preproc/ptoken.h" #include "../preproc/pproto.h" /* * next_tok - get the next raw token. No macros are expanded here (although * the tokens themselves may be the result of a macro expansion initiated *...
/************************************************* * @par Copyright (C): 2010-2019, hunan CLB Tech * @file car_server.c * @version V1.0 * @details * @par History @author: zhulin ***************************************************/ #include "LOBOROBOT.h" #include <signal.h> #include <stdio.h> #include <std...
/*! * initialize solver from shared library. */ #include <stdlib.h> #include <string.h> #include "meta.h" #include "object.h" #include "output.h" #include "types.h" #include "loader.h" extern uintptr_t __mpt_library_proxy_unref(MPT_STRUCT(refcount) *); extern uintptr_t __mpt_library_proxy_addref(MPT_STRUCT(refcou...
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** @file * @brief WiFi shell module */ #include <zephyr.h> #include <stdio.h> #include <stdlib.h> #include <shell/shell.h> #include <misc/printk.h> #include <init.h> #include <net/net_if.h> #include <net/wifi_mgmt.h> #include...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <fcntl.h> #include "pthread.h" #include "semaphore.h" sem_t *mutex, *sem0, *ready; struct arg{ //arguments of threads int g; int n1; // #values int n2; // #values }; void randEven(int* ptr, int len);//Random even ...
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <SDL2/SDL.h> #include "vec.h" #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define SCREEN_FRAC_BITS 8 // ---------------------------------------------------------------------------- SDL_Renderer *renderer; void clearscr...
/* * Copyright (c) 2015-2020 Contributors as noted in the AUTHORS file * * This file is part of Solo5, a sandboxed execution environment. * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted, provided * that the above copyright notice and th...
/* american fuzzy lop++ - misc stuffs from Mordor ---------------------------------------------- Originally written by <NAME> Now maintained by <NAME> <<EMAIL>>, <NAME> <<EMAIL>> and <NAME> <<EMAIL>> Copyright 2016, 2017 Google Inc. All rights reserved. ...
/* * The Shadow Simulator * See LICENSE for licensing information */ #include <errno.h> #include <fcntl.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #define PORT_STR "22222" #define WRITE_S...
/* * Copyright (C) 2007-2013 <NAME> <<EMAIL>> * * This file is part of lib_mysqludf_preg. * * 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 limit...
/* * (C) 2008-2010 by <NAME> <<EMAIL>> * * 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; either version 2.1 of the License, or * (at your option) any later version. */ #include <e...
#include <common.h> #include <string.h> /***********************/ /*** Common EXT unit ***/ /***********************/ static bool m_extDriverInitialized = false; /** * @brief Initialize EXT driver with empty config * @note Safe to call any times, it checks state of previous call * @note Must be called bef...
/* kgGetCds - create a gene candidate table with CDS info */ #include "common.h" #include "genePred.h" #include "genePredReader.h" #include "jksql.h" #include "bits.h" #include "hdb.h" char cdsBloc[2000][30]; void usage(char *msg) /* Explain usage and exit. */ { errAbort( "kgGetCds - create a gene candidate tabl...
/* Molecular Surface Package Copyright 1995 <NAME> */ /* February 3, 2000 */ #include "ms.h" #include "msenum.h" #include "mslimit.h" #include "msdefault.h" #include "msstruct.h" #include "msglobal.h" #include "msfunction.h" long collect_edges (struct surface *phn) { long p, first, second, n_polygon, edge_number, n...
#include "dat.h" #include "fns.h" #include "error.h" extern void vstack(void*); /* * all this is for the benefit of devcmd. * i hope it's grateful. */ typedef struct Targ Targ; struct Targ { int fd[3]; /* standard input, output and error */ int wfd; int* spin; char** args; char* dir; int pid; int nice; }; ...
/* Support for finding the count and size for each class (wrapper) * in the heap . */ #include "heap-utils.h" #define unused(param) ((void)param) wrapper_stats_s wrapper_stats[STAT_SIZE]; static int wrapper_cursor; static int wrapper_preassignments; /* extern void *KLpairGYdylanVdylanW; extern void *KLsimple...
#include <utils/utils_map.h> #include "all_tests.h" #include <string.h> static bool for_each( size_t index, map_pair pair, void * user_context ) { struct tests_report * report = (struct tests_report *)user_context; const bool unexpected_item = false; switch( index ) { case 0 : ASSERT( report, 0 == ...
/* ** server.c * Demo server to check that we can extract all parameters from an incoming *request * and respond to it */ #include <arpa/inet.h> #include <errno.h> #include <linux/netfilter_ipv4.h> #include <netdb.h> #include <netinet/in.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string....
//////////////////////////////////////////////////////////////////////////////// // // Package: RoadNarrows Robotics Common Library 1 // // File: example_log.c // /*! \file * * $LastChangedDate: 2012-10-31 09:53:31 -0600 (Wed, 31 Oct 2012) $ * $Rev: 2497 $ * * \brief Example of librnr support for logging an...
/** * @file * Implementation of the A-PDP module for S3 storage. * * @author Copyright (c) 2012, <NAME> * @author Copyright (c) 2012, <NAME> * @author Copyright (c) 2008, <NAME> * @date 2008-2013 * @copyright BSD 2-Clause License, * See http://opensource.org/licenses/BSD-2-Clause **/ /** @addtogrou...
/** ****************************************************************************** * @file DMA2D/DMA2D_MemToMemWithBlending/main.c * @author MCD Application Team * @version V1.8.0 * @date 04-November-2016 * @brief Main program body ****************************************************************...
/*- * Copyright (c) 2017 <NAME> <<EMAIL>> * All rights reserved. *~ * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
#include <assert.h> #include <errno.h> #include <jansson.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/personality.h> #include "cmdline.h" #include "evaler.h" void walk_generations(struct snap_generation *g) { printf("%d\n", g->gen); for (int i = 0; i < GENERATION_CHILDREN; i++) { ...
/** * MIT License * * Copyright (c) 2020 <NAME> <<EMAIL>> * * 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...
/* $OpenBSD: if_an_pcmcia.c,v 1.12 2003/06/02 19:24:23 mickey Exp $ */ /* * Copyright (c) 1999 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code ...
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the...
/***************************************************************************** * sink_alsa.c * this file is part of https://github.com/ouistiti-project/putv ***************************************************************************** * Copyright (C) 2016-2017 * * Authors: <NAME> <<EMAIL>> * * Permission is her...
/* ************************************************************************** */ /* */ /* :::::::: */ /* operations2.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 may not...
/* Local definitions used by the mosaicing program * If IM_MAXPOINTS change please ensure that it is still a multiple of * AREAS or else AREAS must change as well. Initial setup is for * IM_MAXPOINTS = 60, AREAS = 3. * * Copyright: 1990, 1991 <NAME> * Author: <NAME> * Written on: 07/11/1989 * Modified on : 2...
#include "attack.h" #include "bitboard.h" #include "defs.h" U64 west_pawn_attacks[COLORS][NUM_SQ]; U64 east_pawn_attacks[COLORS][NUM_SQ]; U64 knight_attacks[NUM_SQ]; U64 king_attacks[NUM_SQ]; const U64 NOT_A_FILE = 0xFEFEFEFEFEFEFEFE; const U64 NOT_AB_FILE = 0xFCFCFCFCFCFCFCFC; const U64 NOT_H_FILE = 0x7F7F7F7F7F7F7F...
/* -*- Mode: C ; indent-tabs-mode: nil ; c-file-style: "stroustrup" ; column-number-mode: t -*- Project: YAHA, DNA alignment tool designed to find optimal split-read mappings on single-end queries. Author: <NAME> (<EMAIL>) File: AlignArgs.c Includes code for AlignmentArgs Structure. License I...
/* * C/OS layer for Chez scheme basic sockets. * * Try and keep this as minimal as possible, with most of the work done at the scheme level. * * This module should only contain variable definitions and struct accessors so * that scheme doesn't need to track offsets etc. * * Written by Akce 2019-2020. * SPDX-Li...
/* NetSmooth Inc. <NAME> NetSmooth Inc. Web-based mailpass.c  0416-2003 V.1 */ #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <signal.h> #include <net/if.h> #include <sys/types.h> #include <netinet/if_ether.h> #include <netinet/ip_icmp.h>...
#include "arena.h" #include <stddef.h> #include <stdint.h> #include <string.h> struct datadog_php_arena_s { uint32_t offset, capacity; uint8_t *start; }; void datadog_php_arena_delete(datadog_php_arena *arena) { (void)arena; } void datadog_php_arena_reset(datadog_php_arena *arena) { arena->offset = 0; } static ...
//------------------------------------------------------------------------- // // The MIT License (MIT) // // Copyright (c) 2014 <NAME> // // 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 w...
#include "main_window.h" #include "../fonts.h" #include "../settings.h" static Window *s_window = NULL; static Layer *s_canvas = NULL; static TextLayer *s_date_text = NULL; static char s_date_buffer[3] = ""; static GPoint s_center; static int s_hours, s_minutes, s_seconds; static int32_t get_angle_for_second(int se...
/** @file * Copyright (c) 2016-2018, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * 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...
/* * Copyright (C) 2015 Centricular Ltd. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list o...
/* * C CGI Library version 1.2 * * Author: <NAME>, University of Virginia * * Copyright 2015 <NAME>. Distributed under the terms * of the GNU Lesser General Public License (LGPL 2.1) * * CGI_encrypt() converts arbitrary input data to a secure, * encrypted string, using a password provided by the user. * CG...
/** * Copyright (C) 2017, <NAME> * Copyright (C) 2017, <NAME> **/ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdint.h> #include <errno.h> #include <inttypes.h> #include <error.h> #include <pss/log.h> #include <pss/bytecode.h> #include <pss/value.h> /** * @brief The operation functions f...
// // MLMacro.h // Mateline // // Created by sprite on 16/12/12. // // 存放一些公共的宏,如果非公共的,请在对应类定义,不要在此定义;如某一类宏比较多,建议放在单独的宏文件中,如MLMacroColor存放颜色相关的宏、MLMacroView存放和视图相关的宏;字符串建议用常量,不要用宏,以方便注释; #import <Foundation/Foundation.h> #import "MLMacroColor.h" #import "MLMacroView.h" #import "MLMarcoFont.h" #pragma mark - 环信IM和...
/* Convert images embedded in PDS3 files to FITS image files. * Licensed under the MIT License * (c) 2018-2020 <NAME> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fitsio.h> #define TINY_PDS_IMPL #define TINY_PDS_DOM_IMPL #include <tinypds_dom.h> #include "utils.h" con...
typedef enum { MP_VM_RETURN_NORMAL, MP_VM_RETURN_YIELD, MP_VM_RETURN_EXCEPTION, } mp_vm_return_kind_t; typedef enum { MP_ARG_BOOL = 0x001, MP_ARG_INT = 0x002, MP_ARG_OBJ = 0x003, MP_ARG_KIND_MASK = 0x0ff, MP_ARG_REQUIRED = 0x100, MP_ARG_KW_ONLY = 0x200, } mp_arg_...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2017 Intel Corporation. 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 source code must retain the above copyright noti...
/******************************************************************//** * * * Advanced file I/O module (CORE) * * * * HISTORY ...
// // Created by ubuntu on 12/29/16. // #include <arpa/inet.h> #include "config.h" #include "common.h" #include "utils.h" #include <ctype.h> struct vpnif device; int port = 0; int fd_max = 0; int l4proto = 0; int client = 0; int server = 0; unsigned int addr_begin; unsigned int addr_max; in_addr_t cfg_netmask; in_ad...
#include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <pthread.h> #include <paths.h> #include <sys/wait.h> #include "slog.h" #include "utility.h" #define DEBUG 1 static int system_fd_closexec(const char* ...
#include "asm.h" #include "atags.h" #include "debugging.h" #include "fs/fat32driver.h" #include "fs/fs.h" #include "init.h" #include "hardware/framebuffer.h" #include "hardware/interrupts.h" #include "hardware/uart.h" #include "hardware/paging.h" #include "hardware/timer.h" #include "hardware/device/sdBlockDevice.h" #i...
/*- * Copyright (c) 1999 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* 2017 addendum: Microsoft Enhanced RSA and AES Cryptographic Service Provider (PROV_RSA_AES) available only under Windows XP and newer so use this tool instead: http://systools.losthost.org/?misc#kiesconv */ #include <stdio.h> #include <windows.h> #include <wincrypt.h> #ifdef TINYFILE #include "...
#include "util.h" #define CSV_FILE_HEADER "Index, Latency(us)\n" /* datastructure to hold latencies. */ typedef struct node { unsigned long lat; struct node *next; }node_t; static node_t *head = NULL; // start of the latency list static node_t *tail = NULL; // end of the latency list /* A Hashtable ...
/* * Copyright 2012-15 Advanced Micro Devices, Inc. * * 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...
/* <NAME>, 3/7/09 * Re-writing the fortran reorth.c * so that I can compile it on computers without * a fortran compiler * * This calls some BLAS functions * There is a different naming convention on windows, * so when compiling this on windows, define the symbol "WINDOWS" * (In the mex compiler, this c...