text stringlengths 9 948k |
|---|
/**
@file extensions/camera/common/pins_camera.c
@brief Camera hardware API.
@author Pekka Lehtikoski
@version 1.0
@date 26.4.2021
Copyright 2020 Pekka Lehtikoski. This file is part of the eosal and shall only be used,
modified, and distributed under the terms of the project licensing. By conti... |
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
static int __init lkm_init(void) {
printk("hello world\n");
return 0;
}
static void __exit lkm_exit(void) { printk("Goodbye\n"); }
module_init(lkm_init);
module_exit(lkm_exit);
MODULE_LICENSE("GPL"); |
/*========================== begin_copyright_notice ============================
Copyright (C) 2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#ifndef CM_CL_ATOMIC_H
#define CM_CL_ATOMIC_H
#include "define.h"
#include "detail/buil... |
/** @file
The common header file for SMM FTW module and SMM FTW DXE Module.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __SMM_FTW_COMMON_H__
#define __SMM_FTW_COMMON_H__
#include <Protocol/SmmFirmwareVolumeBlock.h>
#include <Pro... |
/*
Unix SMB/CIFS implementation.
answer node status queries
Copyright (C) Andrew Tridgell 2005
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 3 of the License,... |
#include <stdio.h>
int main(void){
printf("");
} |
#pragma once
#pragma once
#include "Event/Event.h"
namespace RM
{
class KeyEvent : public Event
{
public:
int GetKeyCode() const { return m_KeyCode; }
EVENT_CATEGORY(EventCategoryKeyboard | EventCategoryInput);
protected:
KeyEvent(int keyCode)
:m_KeyCode(keyCode)
{
}
int m_KeyCode;
};
class K... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SCREENLOCK_ICON_SOURCE_H_
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SCREENLOCK_ICON_SOURCE_H_
#includ... |
//
// ZBCollectionViewFlowLayout.h
// LZBLinkageView
//
// Created by zibin on 2018/1/24.
// Copyright © 2018年 Apple. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ZBCollectionViewFlowLayout : UICollectionViewFlowLayout
@end |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or its l... |
#ifndef LIGHTNING_GOSSIPD_GOSSIP_STORE_H
#define LIGHTNING_GOSSIPD_GOSSIP_STORE_H
#include "config.h"
#include <bitcoin/short_channel_id.h>
#include <ccan/list/list.h>
#include <ccan/short_types/short_types.h>
#include <ccan/tal/tal.h>
#include <gossipd/routing.h>
/**
* gossip_store -- On-disk storage related infor... |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#if (NGX_TEST_BUILD_DEVPOLL)
/* Solaris declarations */
#define POLLREMOVE 0x0800
#define DP_POLL 0xD001
#define DP_ISPOLLED 0xD002
struct dvpoll {
struct pollfd *dp_... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2018 Intel Corporation. All Rights Reserved.
#pragma once
#include "backend.h"
#include "types.h"
#include "option.h"
static const int NUM_OF_RGB_RESOLUTIONS = 5;
static const int NUM_OF_DEPTH_RESOLUTIONS = 2;
namespace librealsense
{
c... |
#ifndef SERVER_WORKER_FACTORY_H_
#define SERVER_WORKER_FACTORY_H_
#include "worker.h"
#include "sqpkv/status.h"
namespace sqpkv {
class WorkerFactory {
public:
virtual ~WorkerFactory() {}
virtual StatusOr<Worker> CreateWorker(int client_fd) = 0;
};
} // namespace sqpkv
#endif // SERVER_WORKER_FACTORY_H_ |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <objc/NSObject.h>
@class NSString, QDataCacheHandDrawMap;
@interface QHandDrawTileOverlayDataProvider : NSObject
{
NSStri... |
#include <stdio.h> /* puts, fopen, fprintf */
#include <stdlib.h> /* exit */
#include <string.h> /* strncmp */
#define ESC "\x1b"
#define RED_TEXT "31"
#define YELLOW_TEXT "33"
#define RESET ESC "[0m"
#define CTEXT(c, s) ESC "[" c "m" s RESET
#define ere \
do { \
fprintf(stderr, \
CTEXT(Y... |
#include <core/Runtime.h>
#include <dataTypes/Value.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
int runtime_i64_store32(Stack stack, MemInst* memory, uint32_t offset, uint32_t align)
{
Value *value1 = NULL;
Value *value2 = NULL;
int32_t *dataPointer = NULL;
uint32_... |
// oneviewHTTPD.h
/* instance-infrakit-oneview - A Docker InfraKit plugin for HPE OneView
*
* Dan Finneran <finneran@hpe.com>
*
* (c) Copyright [2017] Hewlett Packard Enterprise Development LP;
*
* This software may be modified and distributed under the terms
* of the Apache 2.0 license. See the LICENSE file ... |
/*
** Copyright(C) 2017, StepToSky
**
** 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 following di... |
void Xbyak::CodeGenerator::rex(const Operand &op1, const Operand &op2) {
uint8 rex = 0;
const Operand *p1 = &op1, *p2 = &op2;
if (p1->isMEM())
std::swap(p1, p2);
if (p1->isMEM())
throw Error(ERR_BAD_COMBINATION);
if (p2->isMEM()) {
const Address &addr = p2->getAddress();
if (BIT == 64 && addr.... |
#pragma once
#include "../aal/aal.h"
#include "pal_timer_default.h"
#if defined(SNMALLOC_BACKTRACE_HEADER)
# include SNMALLOC_BACKTRACE_HEADER
#endif
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/mman.h>
#include <sys/uio.h>
#includ... |
#include <string.h>
#include <stdlib.h>
#include "mini-gmp.h"
#include "lua_util.h"
#define LUA_BIGINT "gmp.bigint"
#define gmp_free(p) ((*gmp_free_func) ((p), 0))
static void (*gmp_free_func) (void *, size_t);
static int bn_new(lua_State *L)
{
mpz_t *bn = NULL;
if (lua_type(L, 1) == LUA_TNUMBER)
{
bn = (mpz_t ... |
/*/////////////////////////////////////////////////////////////////////////////////////
// project : sFFe ( SegFault (or Segmentation Fault :) ) formula evalutaor )
// author : Mateusz Malczak ( mateusz@malczak.info )
// wpage :
/////////////////////////////////////////////////////////////////////////////////////*/... |
//
// ____ _ __ _ _____
// / ___\ /_\ /\/\ /\ /\ /__\ /_\ \_ \
// \ \ //_\\ / \ / / \ \ / \// //_\\ / /\/
// /\_\ \ / _ \ / /\/\ \ \ \_/ / / _ \ / _ \ /\/ /_
// \____/ \_/ \_/ \/ \/ \___/ \/ \_/ \_/ \_/ \____/
//
// Copyright... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "hash.h"
#include <assert.h>
#include <stdbool.h>
long int main()
{
char mode[20];
long int N, Q;
bool HashModeQuad;
long int countfilled;
scanf("%s", mode);
while ((getchar()) != '\n')
... |
//
// ComposeViewController.h
// twitter
//
// Created by Alex Oseguera on 6/29/20.
// Copyright © 2020 Emerson Malca. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Tweet.h"
NS_ASSUME_NONNULL_BEGIN
@protocol ComposeViewControllerDelegate
-(void)didTweet:(Tweet *)tweet;
@end
@interface ComposeViewCo... |
//------------------------------------------------------------------------------
// GB_mx_string_to_BinaryOp.c: get a GraphBLAS operator from MATLAB strings
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
/... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2012,2013, by the GROMACS development team, led by
* David van der Spoel, Berk Hess, Erik Lindahl, and including many
* others, as listed in the AUTHORS file in the top-level source
* directory and at http://www.gromacs.org.
*
... |
/*! \file bcma_bslsink.c
*
* Broadcom System Log Sinks
*/
/*
* Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
* Broadcom Limited and/or its subsidiaries.
*
* Broadcom Switch Software License
*
* This license governs the use of the accompanying Broadcom software. Your
* use of the ... |
#include <stdio.h>
#include <assert.h>
#define SW_TEST_ENVIRONMENT 0
#define SW_PROD_ENVIRONMENT 1
#define SW_ENVIRONMENT SW_TEST_ENVIRONMENT
char testSelectSize(int cms, char testsizeName);
char selectSize(int cms , char testsizeName);
char testSelectSize(int cms, char testsizeName) {
char sizeName = '\0';
... |
// Copyright (c) 2012 GeometryFactory Sarl (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
// 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 opt... |
#include <stdio.h>
#define MAX 100
int strlength(char *s)
{
int L = 0;
char* p;
for(p = s; *p != '\0'; p++)
L++;
return L;
}
void f1(int a[MAX][MAX], int m, int *rez)
{
int *p, *w;
for(p = a[0], w = a[0] + m - 1;
p < a[0] + m * MAX, w < a[0] + m * MAX;
p += ... |
/* -----------------------------------------------------------------------
* formatting.c
*
* src/backend/utils/adt/formatting.c
*
*
* Portions Copyright (c) 1999-2019, PostgreSQL Global Development Group
*
*
* TO_CHAR(); TO_TIMESTAMP(); TO_DATE(); TO_NUMBER();
*
* The PostgreSQL routines for a timestamp/... |
/* LEON Header File select
*
* (C) Copyright 2007
* Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
*
* 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 Li... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import <IDEiOSSupportCore/IDEGaugeDataProviderService_iOSDevice.h>
@interface IDEGaugeDataProviderService_iOSDevice_NetworkStatistics : IDEGaugeDataProviderService_iOSDevice
{
}
... |
/**
******************************************************************************
* @file stm32h7xx_hal_hcd.c
* @author MCD Application Team
* @brief HCD HAL module driver.
* This file provides firmware functions to manage the following
* functionalities of the USB Peripheral Contro... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
/****************************************************************************
* include/contactless/ioctl.h
*
* Copyright(C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
// Copyright 2009 the V8 project authors. 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 of ... |
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* 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
* righ... |
/*
* This file is part of MPlayer.
*
* MPlayer 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.
*
* MPlayer is distributed in th... |
// -*- C++ -*-
// -*- coding: utf-8 -*-
//
// michael a.g. aïvázis
// orthologue
// (c) 1998-2019 all rights reserved
// code guard
#if !defined(pyre_memory_h)
#define pyre_memory_h
// support
#include "memory/public.h"
#endif
// end of file |
//
// DemoCompatibleScrollViewViewController.h
// ZXNavigationBarDemo
//
// Created by 李兆祥 on 2020/7/29.
// Copyright © 2020 ZXLee. All rights reserved.
//
#import "DemoBaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface DemoCompatibleScrollViewViewController : DemoBaseViewController
@end
NS_ASSUME_NONNUL... |
// Copyright 2011 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_PROFILE_GENERATOR_H_
#define V8_PROFILE_GENERATOR_H_
#include <map>
#include "include/v8-profiler.h"
#include "src/allocation.h"
#include "s... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(){
/*
Write a program to play a number guessing game with a user.
You can generate a random integer between 1 and 100 with the following lines of code:
#include <stdlib.h>
#include <time.h>
...
int number;
srand ((unsi... |
#ifndef _TOKENSYSTEMH_
#define _TOKENSYSTEMH_
#include "common.h"
#ifdef INFORMATION
Copyright (C)2011-2021 by Bruce Wilcox
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, in... |
/* include/openthread-config-generic.h. Generated from openthread-config-generic.h.in by configure. */
/* include/openthread-config-generic.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Define to 1 if your C+... |
/* Copyright 2017 The TensorFlow Authors. 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 by applicable law or a... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
// Copyright (c) 2009-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
#include "aml.h"
DECLARE_DATA_IDENT(mul_op_id, "*");
DECLARE_DATA_FUNC(mul_op_fnc, &mul_op_id, mul_fnc);
/*
-----------------------------------------------------------------------
*/
int
mul_fnc( /* multiplicate (*) */
fncrc_t *fncrc, /* function reporting faramework */
sess_t *sp, /* session descriptor ... |
#ifndef WAVETABLE_SAWGAP2_80_H
#define WAVETABLE_SAWGAP2_80_H
#define WAVETABLE_SAWGAP2_80_LENGTH 1024
static long sawGap2_80_tableLength = 1024;
static float sawGap2_80_waveTable[WAVETABLE_SAWGAP2_80_LENGTH] = {
0.000000e+00, 5.106926e-03, 1.021397e-02, 1.532102e-02, 2.042806e-02, 2.553511e-02, 3.064215e-02, 3.57... |
// Copyright (C) 2003 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_HASH_TABLE_KERNEl_2_
#define DLIB_HASH_TABLE_KERNEl_2_
#include "hash_table_kernel_abstract.h"
#include "../general_hash/general_hash.h"
#include "../algs.h"
#include "../interf... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:16:40 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/PrivateFrameworks/CalDAV.fr... |
/* @@@LICENSE
*
* Copyright (c) 2009-2013 LG Electronics, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
#ifndef ISLUTILS_PET_WRAPPER_H
#define ISLUTILS_PET_WRAPPER_H
#include <islutils/scop.h>
#include <islutils/type_traits.h>
#include <functional>
#include <string>
#include <vector>
class pet_scop;
class pet_stmt;
class ScopContainer;
namespace pet {
isl::ctx allocCtx();
template <typename T>
/// A wrapper class ar... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_CLIENTMODEL_H... |
// 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... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Shitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_POW_H
#define BITCOIN_POW_H
#include <consensus/params.h>
#inc... |
/*
* Digital Semiconductor DECchip 2114x PCI Fast Ethernet LAN Controller.
* To do:
* thresholds;
* ring sizing;
* handle more error conditions;
* tidy setup packet mess;
* push initialisation back to attach;
* full SROM decoding.
*/
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#in... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2014 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility ... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:38:43 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Eli... |
// SPDSample
//
// Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved.
// 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 th... |
/* Copyright (C) 2010-2018 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (audio_mixer.c).
* ---------------------------------------------------------------------------------------
*
* Perm... |
/**
* This header is generated by class-dump-z 0.2a.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: /System/Library/PrivateFrameworks/Celestial.framework/Celestial
*/
#import "Celestial-Structs.h"
#import <Foundation/NSObject.h>
#import "AVRecorderImpl.h"
@class NSMutableDict... |
/*
* Copyright (c) 2020, Seagate
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Board configuration macros for the nxp_lpc11u6x platform
*
* This header file is used to specify and describe board-level aspects for the
* 'nxp_lpc11u6x' platform.
*/
#ifndef _SOC__H_
#define _SOC__H_
#ifndef ... |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
#ifndef RX_CORE_STRING_H
#define RX_CORE_STRING_H
#include "rx/core/assert.h" // RX_ASSERT
#include "rx/core/format.h" // format
#include "rx/core/vector.h" // vector
#include "rx/core/traits/remove_cvref.h"
#include "rx/core/memory/system_allocator.h" // memory::{system_allocator, allocator}
namespace Rx {
struct ... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SKSL_EXPRESSIONSTATEMENT
#define SKSL_EXPRESSIONSTATEMENT
#include "include/private/SkSLStatement.h"
#include "src/sksl/ir/SkSLExpression.h"
namespace SkSL {
/**
*... |
#pragma once
#include "common/graph/bipartite.h"
#include <queue>
#include <vector>
namespace graph {
// Hopcroft-Karp algorithm
// https://en.wikipedia.org/wiki/Hopcroft%E2%80%93Karp_algorithm
// Time: O(E sqrt(V))
class BipartiteMatching {
protected:
const unsigned inf = unsigned(-1);
unsigned size, matched;
... |
/* $Id: sph_types.h 260 2011-07-21 01:02:38Z tp $ */
/**
* Basic type definitions.
*
* This header file defines the generic integer types that will be used
* for the implementation of hash functions; it also contains helper
* functions which encode and decode multi-byte integer values, using
* either little-endia... |
#include <stdio.h>
#include <string.h>
#define HEYSTACK_SIZE 401
#define NOT_FOUND -1
char* find(char *, char);
int counter = 0;
int main () {
char hayStack[401];
char Needle;
char *result = NULL;
scanf("%[^\n]s",hayStack);
getchar();
Needle = getchar();
if (find(hayStack, Needle) != NULL) {
printf("%l... |
#pragma once
#include "../xrUICore/UIWindow.h"
#include "../xrUICore/UIWndCallback.h"
class CUICellContainer;
class CUIScrollBar;
class CUIStatic;
class CUICellItem;
class CUIDragItem;
struct CUICell
{
CUICell () {m_item=NULL; Clear();}
CUICellItem* m_item;
bool m_bMainItem;
void SetIte... |
// This code was derived from franka_example controllers
// Copyright (c) 2017 Franka Emika GmbH
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
// Current development and modification of this code by Nadia Figueroa (MIT) 2021.
#pragma once
#include <memory>
#include <string>
#include <ve... |
// This file has been automatically generated by goFB and should not be edited by hand
// Compiler written by Hammond Pearce and available at github.com/kiwih/goFB
// This file represents the interface of Function Block _Core102
#ifndef _CORE102_H_
#define _CORE102_H_
#include "fbtypes.h"
//This is a CFB, so we need... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_SVG_IMAGE_PAINTER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_SVG_IMAGE_PAINTER_H_
#include "third_par... |
#ifndef _grib2_H
#define _grib2_H
#include<stdio.h>
#define G2_VERSION "g2clib-1.4.0"
/* . . . .
// PRGMMR: Gilbert ORG: W/NP11 DATE: 2002-10-25
//
// PROGRAM HISTORY LOG:
// 2002-10-25 Gilbert
// 2009-01-14 Vuong Changed struct template t... |
#ifndef WRITESERIAL_H
#define WRITESERIAL_H
#include <QtWidgets>
#include <QObject>
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QList>
#include <qapplication.h>
class SerialManager;
class WriteSerial : public QWidget
{
Q_OBJECT
public:
WriteSerial(SerialManager *manager);
private :
Seri... |
#pragma once
#define CAPSTONE_HAS_X86
#include <unordered_map>
#include "../subhook/subhook.h"
#include "../events/io_events.h"
#include "../events/drawing_events.h"
#include "../utility/drawing.h"
namespace cwin::thread{
class object;
}
namespace cwin::ui{
class visible_surface;
class window_surface;
class ... |
/*
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
* 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 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be ... |
//
// BTStatistical.h
// Demo
//
// Created by 曹星星 on 2018/1/9.
//
#import <Foundation/Foundation.h>
@interface BTStatistical : NSObject
- (void)sayHello;
@end |
//
// HTMLFormTest.h
//
// $Id: //poco/1.4/Net/testsuite/src/HTMLFormTest.h#2 $
//
// Definition of the HTMLFormTest class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a ... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
*/
#ifndef TRACE_LEVELS_H
#define TRACE_LEVELS_H
/*
* Trace levels.
*
* ALWAYS is used when you always want a print to be seen, but it is not always
* an error.
*
* ERROR is used when some kind of error h... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 12:31:33 PM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/iWorkImport.framework/Frameworks/TSText.framework/TSText
* classdump-dyld is licensed under GPLv3, C... |
#ifndef _ELF_H_INCLUDED
#define _ELF_H_INCLUDED
/**
* Minimal elf file parser and runtime
*/
#include <stdint.h>
#define ELF_MAGIC 0x464c457f
typedef struct {
uint32_t ident_magic;
uint8_t ident_arch;
uint8_t ident_byteOrder;
uint8_t ident_version;
uint8_t ident_abi;
uint8_t ident_ab... |
//
// DCIntrospect.h
//
// Created by Domestic Cat on 29/04/11.
//
#define kDCIntrospectNotificationIntrospectionDidStart @"kDCIntrospectNotificationIntrospectionDidStart"
#define kDCIntrospectNotificationIntrospectionDidEnd @"kDCIntrospectNotificationIntrospectionDidEnd"
#define kDCIntrospectAnimationDuration 0.08
... |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//
// ShellFolder.h
//
#ifndef _SHELLFOLDER_H
#define _SHELLFOLDER_H
#include "EnumIDL.h"
class CShellFolder : public IShellFolder, public IPersistFolder
{
friend class CShellView;
friend class CEnumIDList;
friend class CData... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:47:49 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/GameCenterFoundation.framework/GameCenterFoundation
* classdump-dyld is licensed under GPLv3, Copyrigh... |
// ==============================================================
// RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
// Version: 2015.2
// Copyright (C) 2015 Xilinx Inc. All rights reserved.
//
// ===========================================================
#ifndef _duc_HH_
#define _duc_... |
# Python program to find the largest number among the three input numbers
# take three numbers from user
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num3 = float(input("Enter third number: "))
if (num1 > num2) and (num1 > num3):
largest = num1
elif (num2 > num1) and (nu... |
#ifndef PY_HTQL_MODULE_H_CLY_2011_03_03
#define PY_HTQL_MODULE_H_CLY_2011_03_03
#include <Python.h>
#include "structmember.h"
class ReferData;
int is_pystr(PyObject*strobj);
char* uni2str(PyObject*uniobj, ReferData* str);
PyObject* str2uni(const char* str);
int debug_str(char* str, int is_new_file=false);
int debug... |
#include "libws_test_helpers.h"
#include "libws_utf8.h"
#include <stdio.h>
#include <string.h>
static void print_utf8_str(const char *str, size_t len)
{
size_t i;
unsigned char *s = (unsigned char *)str;
for (i = 0; i < len; i++)
{
printf("%x", s[i]);
}
printf("\n");
}
static const char *utf8_overlong[] =
{... |
/***************************************************************************
Bagman memory map (preliminary)
0000-5fff ROM
6000-67ff RAM
9000-93ff Video RAM
9800-9bff Color RAM
9800-981f Sprites (hidden portion of color RAM)
9c00-9fff ? (filled with 3f, not used otherwise)
memory mapped ports:
read:
a000 rando... |
#ifndef __TEST_MATRIX
#define __TEST_MATRIX
// this is the only function required to test the entire matrix ADT
bool testmatrix (void);
#endif |
// Copyright (c) 2016 GeometryFactory SARL (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : Andreas Fabri
//
// Warning: this file is generated, see include/CGAL/licence/README.m... |
/* $OpenBSD: umac128.c,v 1.2 2018/02/08 04:12:32 dtucker Exp $ */
#define UMAC_OUTPUT_LEN 16
#define umac_new umac128_new
#define umac_update umac128_update
#define umac_final umac128_final
#define umac_delete umac128_delete
#define umac_ctx umac128_ctx
#include "umac.c" |
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class org_eclipse_cdt_utils_pty_PTY */
#ifndef _Included_org_eclipse_cdt_utils_pty_PTY
#define _Included_org_eclipse_cdt_utils_pty_PTY
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_eclipse_cdt_utils_pty_PTY
* Method: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.