text stringlengths 3.12k 18.7k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include "md5.h"
#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
#define H(x, y, z) ((x) ^ (y) ^ (z))
#define I(x, y, z) ((y) ^ ((x) | (~z)))
#define RL(x, y) (((x) << (y)) | ((x) >> (32 - (y))))
#define PP(x)... |
#include "snapconfig.h"
/*
$Log: stnadj.c,v $
Revision 1.1 1995/12/22 17:49:40 CHRIS
Initial revision
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "network/networkb.h"
#include "snap/stnadj.h"
#include "snap/snapglob.h"
#include "snap/snapcsvstn.h"
#include "uti... |
#include"test.h"
#include <stdio.h>
int getopt_test(int argc,char *argv[]);
int xlibc_test(int argc,char *argv[])
{
// return getopt_test(argc, argv);
puts("-----------xlibc_test------------");
puts("read");
char rdbuf[10 + 1] = {0};
read(0, rdbuf, 10);
printf("rdbuf:%s\n", rdbuf);
... |
/*----------------------------------------------------------------------------
libpamread.c
------------------------------------------------------------------------------
These are the library functions, which belong in the libnetpbm library,
that deal with reading the PAM (Porta... |
/*
* db.c
*
* Finding similar colors (matching images)
*
* See https://github.com/kristopolous/similarcolors for the latest version
*/
#include "common.h"
typedef struct {
DB **dbList;
DB *root;
// implicit last db
DB *pLast;
size_t sz, current;
} dbList;
dbList g_db;
rb_red_blk_tree* tree[BINMAX];
i... |
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (C) 2020 <NAME> <<EMAIL>>
*
* Binary file padding utility
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <malloc.h>
#include <getopt.h>
static uint32_t align_size;
static uint32_t max_size;
sta... |
/**
* sx1231.c - sx1231 interface functions
*
* Copyright (c) 2019, <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:
* * Redistributions of source code must retain the ... |
#include <stdio.h>
#include "generator.h"
#include "board.h"
#include "../helper.h"
#include "backTrackingSolver.h"
#include "penAndPaperSolver.h"
#include "../gameGui.h"
#include "../random.h"
//poniższa liczba została wybrana w sposób sztuczny i nie ma żadnego zastosowania w algorytmie, poza mieszaniem pól w celu w... |
/*
* Copyright (C) 2007 Nokia Corporation.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT A... |
// SPDX-License-Identifier: GPL-2.0
/*
* Hantro VPU codec driver
*
* Copyright (C) 2018 Rockchip Electronics Co., Ltd.
*/
#include "hantro.h"
/*
* probs table with packed
*/
struct vp8_prob_tbl_packed {
u8 prob_mb_skip_false;
u8 prob_intra;
u8 prob_ref_last;
u8 prob_ref_golden;
u8 prob_segment[3];
u8 padd... |
/*
* Copyright (c) 2020, Alibaba Group Holding Limited
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
/**
* Handwritten text recognition preprocessing functions
*
* @version $Revision: 170 $$Date:: 2015-02-26 #$
* @copyright Copyright (c) 2004 to the present, <NAME> <<EMAIL>>
*/
#include "htrprep.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
int rlsa4_graym(gray** img, int img... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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, or (at your option) any later version.
*
* This program is d... |
# include <stdio.h>
# include <math.h> /* for sqrt in Interp7 */
# include <c_iraf.h>
# include <hstio.h>
# include "../stis.h"
# include "calstis7.h"
# include "../stiserr.h"
# include "../stisdq.h"
# include "../stisdef.h"
static int GeoOnePoint (StisInfo7 *, double, double,
DistInfo *, FloatHdrData *, FloatHdrD... |
/*
* Copyright (C) 2001-2012 Free Software Foundation, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* The GnuTLS 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... |
/*
* twb_math.c
*
* Created on: Nov 25, 2012
* Author: kevinw
*/
#include "./common/twb_math.h"
#include "./common/twb_common.h"
#include <stdlib.h>
const uint16_t __asinLookup[101] = {0,57,115,172,229,287,344,401,459,516,574,632,689,747,805,863,921,979,1037,1095,1154,1212,1271,1330,1389,1448,1507,1566,162... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "bstree.h"
BSTree bstree_insertar(BSTree arbol, int dato) {
BSNode *newNode = malloc(sizeof(BSNode));
newNode->dato = dato;
newNode->left = NULL;
newNode->right = NULL;
if (!arbol) {
return newNode;
}
/* Debemos insertar el dat... |
/* Copyright (c) 2014-2015 <NAME>. All rights reserved.
* License: This code is licensed under a 3-clause BSD license. See
* the file named "LICENSE" for a full copy of the license.
*/
/** @file Loads 3D model files displays them.
*
* @author <NAME>
*/
#include "libkuhl.h"
#include <stdlib.h>
#include <stdio.h... |
#include "game.h"
#include "about.h"
#include "box.h"
#include "constants.h"
#include "data.h"
#include "high-io.h"
#include "logger.h"
#include "memory.h"
#include "menu.h"
#include "physics.h"
#include "profiler.h"
#include "random.h"
#include "record.h"
#include "text.h"
#include "version.h"
#include <SDL.h>
#includ... |
#include <unistd.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gtk/gtkx.h>
#include <gdk/gdk.h>
#include <math.h>
#include <ctype.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "crypt1.h"
#include "crypt2.h"
#include "crypt3.h"
int choix=1,size,typ... |
/*--- File pubinfo.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "boolean.h"
#include "keyfield.h"
#include "pubinfop.h"
#include "global.h"
#include "protserv.h"
#include "rsaref.h"
#include "ripem.h"
#include "strutilp.h"
#define LINEBUFSIZE 200
#if 0
/*--- function R... |
/*
* Copyright (c) 2008 Secure Endpoints, Inc.
* Copyright (c) 2009-2011 Your File System, Inc.
* 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 re... |
//
// Created by xp10rd on 4/10/19.
//
#include "MPI_mul_matrices.h"
int gcd(int a, int b) {
if(a == 0 || b == 0)
return a + b;
if(a > b)
return gcd(a % b, b);
else
return gcd(a, b % a);
}
void MPI_create_task(struct matrix **A, struct matrix **B, int cols_per_proc) {
int size... |
/*
* Copyright (c) 2016, Xilinx Inc. and Contributors. 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 ... |
/* $OpenBSD: if_uathreg.h,v 1.2 2006/09/18 16:34:23 damien Exp $ */
/*-
* Copyright (c) 2006
* <NAME> <<EMAIL>>
*
* 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 notice appear i... |
#include "progress.h"
/**
* Implementation
*/
#if __STDC_VERSION__ >= 199901L
#define C99
char *
strdup (const char *str) {
char *cpy = malloc(strlen(str)+1);
if (cpy) {
strcpy(cpy, str);
}
return cpy;
}
#endif
/*
* Get current Unix timestamp with timespec format
*/
static void
timestamp(struct t... |
/*
* This file is part of the HCAN tools suite.
*
* HCAN 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, or (at your
* option) any later version.
*
* HCAN is dist... |
/* $OpenBSD: poll.c,v 1.2 2002/06/25 15:50:15 mickey Exp $ */
/*
* Copyright 2000-2003 <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 cod... |
/*
* @file helloworld.c
* @brief QoT Clock Read Latency Estimation Daemon
* @author <NAME>
*
* Copyright (c) Regents of the University of California, 2015. All rights reserved.
* Copyright (c) Carnegie Mellon University, 2016.
*
* Redistribution and use in source and binary forms, with or without modification... |
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... |
/*****************************************************************************
B-Wings (c) 1984 Data East Corporation
Zaviga (c) 1984 Data East Corporation
drivers by <NAME>
*****************************************************************************/
// Directives
#include "driver.h"
#define BW_DE... |
#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... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <sys/stat.h>
#ifdef linux
#include <unistd.h>
#endif
#include <sasm.h>
int SYM(c_scheme_argc) = 0;
int **SYM(c_scheme_argv) = NULL;
extern void *SYM(c_scheme_rtl_init_argv)();
void rtlscheme_in... |
/**
* \file src/heur/regprofheur.c
* \brief Register blocking heuristic for general workloads.
*/
#include <oski/heur/regprofheur.h>
#include <oski/CSC/format.h>
#include <oski/MBCSR/format.h>
#include <oski/heur/estfill.h>
#include <oski/xforms.h>
#include <oski/tune.h>
#define MAX_R 8 /**< Max row block size ... |
/* $OpenBSD: macdefs.h,v 1.2 2007/12/22 13:13:27 stefan Exp $ */
/*
* Copyright (c) 2006 <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 c... |
//
// This module defines PatchGuard context structures for each platform and is
// shared with multiple projects.
//
#pragma once
#include <basetsd.h>
// C/C++ standard headers
// Other external headers
// Windows headers
// Original headers
//////////////////////////////////////////////////////////////////////////... |
/* vips_text
*
* Written on: 20/5/04
* 29/7/04
* - !HAVE_PANGOFT2 was broken, thanks Kenneth
* 15/11/04
* - gah, still broken, thanks Stefan
* 5/4/06
* - return an error for im_text( "" ) rather than trying to make an
* empty image
* 2/2/10
* - gtkdoc
* 3/6/13
* - rewrite as a class
* 20/9/15 leiyan... |
/*
* Copyright (c) 2016, Technische Universität Dresden, Germany
* 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... |
#include "customTransform.h"
#include <math.h>
#include <stdlib.h>
#include <assert.h>
#include "ddcMalloc.h"
#include "simulate.h"
#include "object.h"
#include "codata.h"
#include "units.h"
#include "mpiUtils.h"
static void redBlueCuTransform(TRANSFORM*);
static void thermalize_delta(TRANSFORM*);
static void progre... |
/*
* 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... |
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <openssl/rsa.h>
#include <openssl/err.h>
#include "inc.h"
#include "tcpcrypt_ctl.h"
#include "tcpcrypt.h"
#include "tcpcryptd.h"
#include "crypto.h"
#include "profile.h"
#define LENM 512
#d... |
/*
* Copyright (c) 2005,2006, NLnetLabs
* 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 notice,
* this list o... |
/**
* @file Client.c
* @author <NAME>
*
* @brief Implementation of the game's client
*
* In this file the player (client) is created. We make contact with
* the server and get its response concerning the room the player
* must be assigned in. We also check his quota and its validity.
* If the server gives as... |
/* system/debuggerd/debuggerd.c
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
... |
/**
* \file multiboot.c
* Parse and print out information about multiboot structure.
* \todo Change all to use kprintf
*/
#include "sys/kernel.h"
#include "sys/multiboot1.h"
#include "lib/string.h"
#define NUM_FLAGS_BITS 12
//-------------- Internal function definitions ---------------------------
void print_mb_memo... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/types.h>
#include <signal.h>
#include <pthread.h>
#define MAX 1024
#define port_s 8080
#defin... |
/******************************Module*Header*******************************\
* Module Name: ssimage.c
*
* Operations on .rgb files
*
* Copyright (c) 1995 Microsoft Corporation
*
\**************************************************************************/
#include <windows.h>
#include <stdio.h>
#include <str... |
#include "../kernel.h"
#include "sched.h"
#include "csr.h"
#include "io.h"
#include "malloc.h"
// use memset provided in boot.S
extern void memset(int, void*, void*);
// this is the address where threads return to
// it's located in a seprate section at the end of the kernel
extern int thread_finalizer;
// process li... |
#include "stdio.h"
#include "gsl/gsl_integration.h"
#include "gsl/gsl_errno.h"
#include "non_limber.h"
#include <gsl/gsl_interp2d.h>
#include <gsl/gsl_spline2d.h>
#include <gsl/gsl_spline.h>
#include <gsl/gsl_monte_vegas.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_monte.h>
#include <gsl/gsl_sf_bessel.h>
// This is ... |
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <util/delay.h>
#include <avr/eeprom.h>
/*
** PID Controller **
* Pin Out *
+ PORTC : System Output
* Author(s) *
+ <NAME>
+ <NAME>
*/
#define MAX 2.56 // Maximum PID output
#... |
#include "clipboard.h"
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <time.h>
#define len(arr) (sizeof(arr) / sizeof(*arr))
#if defined(__GNUC__) || defined(__clang__)
#define likely(a) __builtin_expect(!!(a), 1)
#define unlikely(... |
/*
Copyright (C) 2006-2009 <NAME> <<EMAIL>>
This file is part of aubio.
aubio is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... |
#include"matrix_utils.h"
#include<mpi.h>
int BLOCK_LOW(int id,int p,int n){
return id*n/p;
}
int BLOCK_HIGH(int id,int p,int n){
return (id+1)*n/p;
}
int BLOCK_SIZE(int id,int p,int n){
return BLOCK_LOW(id+1,p,n)-BLOCK_LOW(id,p,n);
}
int coords(int ranks[],int tag,int coords[],int size[],int p,int row){
int x,y... |
/********************
* Build in libraries
*********************/
#include <stdio.h>
#include <stdlib.h>
#include<stdbool.h>
/*********************
* Global constants
********************/
#include "header_files/global/global_vars.h"
#include "header_files/global/res_db_path.h"
#include "header_files/global/days_db_... |
// SPDX-License-Identifier: GPL-2.0-or-later
//
// Copyright (C) 2018 ROHM Semiconductors
//
// RTC driver for ROHM BD71828 and BD71815 PMIC
#include <linux/bcd.h>
#include <linux/mfd/rohm-bd71815.h>
#include <linux/mfd/rohm-bd71828.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/socket.h>
#include <assert.h>
#include <unistd.h>
#include <stdint.h>
#include <inttypes.h>
/* Utility to combine multiple sage output files into 1.
compile wit... |
/* s_alloc.c
*
* Micropolis, Unix Version. This game was released for the Unix platform
* in or about 1990 and has been modified for inclusion in the One Laptop
* Per Child program. Copyright (C) 1989 - 2007 Electronic Arts Inc. If
* you need assistance with this program, you may contact:
* http://wiki.lapto... |
/*
* Copyright (C) 2014 BlueKitchen GmbH
*
* 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 and the follo... |
/* 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... |
#include <fluent-bit/flb_filter_plugin.h>
#include <fluent-bit/flb_http_client.h>
#include <fluent-bit/flb_pack.h>
#include <sys/stat.h>
#include "k8s.h"
static int file_to_buffer(const char *path,
char **out_buf, size_t *out_size)
{
int ret;
char *buf;
ssize_t bytes;
FILE *... |
/*
* Host AP (software wireless LAN access point) user space daemon for
* Host AP kernel driver / Kernel driver communication
* Copyright (c) 2002-2005, <NAME> <<EMAIL>>
* Copyright (c) 2004, <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU... |
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/*
* Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
* Copyright (c) 2015 System Fabric Works, Inc. All rights reserved.
*/
#include "rxe.h"
#define RXE_POOL_ALIGN (16)
static const struct rxe_type_info {
const char *name;
size_t size;
siz... |
#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... |
/*
Copyright (c) 2014-2017, Clockwork Dev Studio
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 and... |
/*
* Isolabel
* text position method
*
* module to take positions and node data values from isoline,
* and generate text label positions and strings for annotation of the isoline
*
* Author: <NAME>, AVS Inc.
* Date: 21 June 1999
*
* Updated <NAME>, AVS Inc.
* Date: 28 June 1999
* changed for full fi... |
/*****************************************************************************
* spu.c: transcoding stream output module (spu)
*****************************************************************************
* Copyright (C) 2003-2009 VLC authors and VideoLAN
* $Id: 913272624d67b83353e35d89b02e6cfcba18917d $
*
* Auth... |
// Copyright 2022 Blues Inc. All rights reserved.
// Use of this source code is governed by licenses granted by the
// copyright holder including that found in the LICENSE file.
#include "main.h"
#include "framework.h"
// For Notecard I2C I/O using ST HAL
extern I2C_HandleTypeDef hi2c2;
// Forwards
bool noteI2CRese... |
/* libppm1.c - ppm utility library part 1
**
** Copyright (C) 1989 by <NAME>.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies and that both that
** copyright n... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
#include "cluster.h"
#include "hiredis/adapters/libuv.h"
#include "triemap/triemap.h"
#include "crc16.h"
#include "crc12.h"
#include "rmutil/vector.h"
#include <stdlib.h>
void _MRClsuter_UpdateNodes(MRCluster *cl) {
if (cl->topo) {
/* Reallocate the cluster's node map */
if (cl->nodeMap) {
MRNodeMap_... |
/*
uLZ compression library
Copyright (C) 2021 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
*/
#define _GNU_SOURCE
#include "useful/clike.h"
#include "useful/ulz.h"
#include "useful/bitstream.h"
#include "ulz_pri... |
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <time.h>
#include <unistd.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
struct buffer_object {
uint32_t width;
uint32_t heigh... |
/* =========================================================================
example.c -- Example code for QCBOR
Copyright (c) 2020-2021, <NAME>. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
See BSD-3-Clause license in README.md
Created on 6/30/2020
===================================... |
/* _________ _______
/ ___/ __ \/ __/ _ \ Der Clou!
/ /__/ /_/ /\ \/ ___/ Open Source Project
\___/\____/___/_/ http://cosp.sourceforge.net
Based on the original by neo Software GmbH
*/
#include "landscap\raster.h"
static uword lsGetRasterXSize(ulong areaID);
static uword lsGetRasterYSize(ulong areaID... |
/*
The MIT License (MIT)
Copyright (c) 2016 <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 without restriction, including
without limitation the rights to use, copy, modi... |
#include <kernel/paging.h>
#include <kernel/bitmap.h>
#include <kernel/tty.h>
#include <kernel/kheap.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <kernel/isr.h>
/** This file defines a bunch of helper functions and initializers
* regarding page tables and directories. The helpers generally
... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* $Revision: 2 $
* $Date: 16/10/25 4:27p $
* @brief Implement timer counting in periodic mode.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2021 Nuvoton Techno... |
/*
* File: main.c
* Author: <NAME>
* Description: The test function SM-SPI-STMP01 configurates STPM 34 IC in
* fundamental mode and reads the following parameters:
* -Active Energy;
* -Reactive Energy
* Created on 09.Jan 2016
*/
/*SPI 2 module identification */
... |
/*--------------------------------------------------------------------*/
/*
Read parameters into PRM structure from PRM file
Based on get_params by <NAME>
Modified by RJM
*/
/*--------------------------------------------------------------------*/
#include "image_sio.h"
#include "lib_functions.... |
#include "markov.h"
#include "irc.h"
#define _GNU_SOURCE 1
#include <fcntl.h>
#include <malloc.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h> // memset
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
typedef struct hash_item {
int words_count;
int allocated_words;
c... |
/*
* Copyright (c) 2016, <NAME>
*
* This source code is released for free distribution under the terms of the
* GNU General Public License version 2 or (at your option) any later version.
*
* This module contains functions for parsing and scanning C++ source files
*/
#include "cxx_parser.h"
#include "cxx_parser... |
//Programa de pagamenos de uma empresa de programação
//Sistema Finaceiro
//O programa deve ler o NOME, ESPECIALIDADE do Dev, numero da conta bancaria, banco E quantos trabalhos
//ele entregou esse mes
//deve calcular o deposito que deve ser feito
//Baseado no fato que a 3 tipos de profissionais na empresa
//designers ... |
/*
# clove
#
# Copyright (C) 2016-2020 <NAME>
# Big thanks to <NAME>
#
# This project is free software; you can redistribute it and/or modify it
# under the terms of the MIT license. See LICENSE.md for details.
*/
// http://freetype.sourceforge.net/freetype2/docs/reference/ft2-base_interface.html#FT_GlyphSlo... |
///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... |
/*
** Copyright (c) 2011 <NAME>
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the Simplified BSD License (also
** known as the "2-Clause License" or "FreeBSD License".)
**
** This program is distributed in the hope that it will be useful,
** but without any warranty... |
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.
// All rights reserved.
//
// This software is distributed under a license that is described in
// the LICENSE file that accompanies it.
//
// Meridian is a registered trademark.
/*
* savegame.c
*
This module saves game information to the file, so it can be load... |
/*
* \file
*
* \brief LCD module for ATSHA204 examples
*
* This file contains helper functions that use the Xplained board LCD to display
* the progress and buffer content for an exercise.
*
*
* Copyright (c) 2011-2012 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* Redistri... |
/***********************************************************
* (c) Copyright 1998-2008 Marvell International, Ltd.
*
* Marvell Confidential
* ==========================================================
*/
/****************************************************************************\
** ... |
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2008, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in sou... |
/*
* The Clear BSD License
* Copyright 2017 NXP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided
* that the following conditions are met:
*
* o Redistributions of source cod... |
#include <pebble.h>
#include "mathutil.h"
static Window *s_main_window;
static Layer *s_draw_layer;
struct tm last_time;
int64_t time_sec;
bool seconds_precision = true;
int seconds_precision_countdown = 0;
#define TICK_COLOR PBL_IF_COLOR_ELSE(GColorLightGray , GColorWhite)
#define MINUTE_COVER_COLOR GColorBlack
#de... |
/*
* 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 usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* path.c -- Utility functions for dealing with pathnames
*
* Copyright (C)1999-2006 <NAME> <<EMAIL>>
*
* 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, or (at your opt... |
/*
Copyright(c) 2010-2017 Intel Corporation.
Copyright(c) 2016-2018 Viosoft 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 ... |
/************************************************************************
* RADAR_GRID.C *
* This module contains routines used to project each NEXRAD image into *
* the output grid projection and sample the radar data to the grid. *
* *
* CONTENTS: *
* *
* radar_grid() Called by... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include <dirent.h>
#include <threads.h>
#include <usbhsfs.h>
#define FS_TYPE(x) ((x) == UsbHsFsDeviceFileSystemType_FAT12 ? "FAT12" : ((x) == UsbHsFsDeviceFileSystemType_FAT16 ? "FAT16" : ((x) == UsbHsFsDeviceFileSystem... |
/** \file
* \brief Example code for Simple Open EtherCAT master with Synapticon SOMANET servo drive
*
* Usage : CSV_test_SOMANET_v42 [ifname1]
* ifname is NIC interface, f.e. eth0
*
* This is a minimal test, programmed based on the simple_test of SOEM, driving a motor with SOMANET (v4.2 firmware) in CSV mode at 1... |
/*
** task_asl.c
**
** Task asl for calibrating ASL video eye tracker.
** Basically just makes a grid of fixation points.
*/
#include "../toys.h"
#include "../task.h"
#include "../task_utilities.h"
/* PRIVATE MACROS/CONSTANTS */
#define NUM_GR_MENUS 2
#define TI "setup"
#define TIMV(ta,n) pl_list_get_v((ta)->tas... |
/* eigen/schur.c
*
* Copyright (C) 2006 <NAME>
*
* 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, or (at
* your option) any later version.
*
* This pr... |
/*
* apcupsd.c
*
* APC UPS monitoring daemon.
*/
/*
* Copyright (C) 1999-2005 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General
* Public License as published by the Free Software Foundation.
*
* This program is distributed in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.