repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
lubical/libest | test/UT/US4778/us4778.c | /*------------------------------------------------------------------
* us4778.c - Unit Tests for retry-after processing of BRSKI
* voucher requests
*
* October, 2017
*
* Copyright (c) 2017 by cisco Systems, Inc.
* All rights reserved.
*-----------------------------------------------------------------... |
lubical/libest | test/UT/US5418/us5418h.c | <reponame>lubical/libest
/*------------------------------------------------------------------
* us5418h.c - Unit Tests for User Story 5418 - Performance Timers
*
* September, 2019
*
* Copyright (c) 2019 by cisco Systems, Inc.
* All rights reserved.
*---------------------------------------------------------------... |
lubical/libest | test/UT/US903/us903.c | <filename>test/UT/US903/us903.c
/*------------------------------------------------------------------
* us903.c - Unit Tests for User Story 903 - Server simple enroll
*
* August, 2013
*
* Copyright (c) 2013, 2016 by cisco Systems, Inc.
* All rights reserved.
*------------------------------------------------------... |
lubical/libest | test/UT/US5248/us5248.c | <gh_stars>10-100
/*------------------------------------------------------------------
* us5248.c - Unit Tests for User Story 5248 - Extend Enhanced Cert
* Auth mode feature
* (CSR Checking)
April 2019
*
* Copyright (c) 2019 by... |
lubical/libest | test/UT/US898/us898.c | /*------------------------------------------------------------------
* us898.c - Unit Tests for User Story 898 - Client re-enroll
*
* October, 2013
*
* Copyright (c) 2013, 2016 by cisco Systems, Inc.
* All rights reserved.
*------------------------------------------------------------------
*/
#include <stdio.h... |
lubical/libest | example/client-brski/estclient-brski.c | /*------------------------------------------------------------------
* estclient-brski.c - Example application that utilizes libest.so for
* EST client operations. This module utilizes OpenSSL
* for SSL and crypto services.
*
*
* October, 2013
*
* Copyright (c) 2013, 2016 by cisco ... |
lubical/libest | test/UT/US5418/us5418.h | /*------------------------------------------------------------------
* us5418.h - Header for User Story 5418 Tests - Performance Timers
* Contains the defines and includes common to both the coap and http suites
* for US5418
*
* September, 2019
*
* Copyright (c) 2019 by cisco Systems, Inc.
* All rights reser... |
lubical/libest | test/util/st_server.h | /*------------------------------------------------------------------
* st_server.h - Public API for simple single-threaded EST server
*
* August, 2013
*
* Copyright (c) 2013, 2016, 2018 by cisco Systems, Inc.
* All rights reserved.
*------------------------------------------------------------------
*/
#ifndef ... |
lubical/libest | test/util/curl_utils.h | /*------------------------------------------------------------------
* curl_utils.h - Client HTTP operation utilities that utilize
* libcurl.
*
* June, 2013
*
* Copyright (c) 2013 by cisco Systems, Inc.
* All rights reserved.
*------------------------------------------------------------------
*/... |
lubical/libest | java/jni/jest.h | /*
* jest.h
*
* Created on: July 1, 2014
* Author: foleyj
*
* Copyright (c) 2014 by cisco Systems, Inc.
* All rights reserved.
*
*/
#include <jni.h>
/* Header for class com_cisco_c3m_est classes */
#ifndef _Included_com_cisco_c3m_est_ESTClient
#define _Included_com_cisco_c3m_est_ESTClient
#ifdef __cpl... |
lubical/libest | example/android/ESTClient/jni/est.h | <gh_stars>10-100
/** @file */
/*------------------------------------------------------------------
* est/est.h - Public API for Enrollment over Secure Transport
*
* November, 2012
*
* Copyright (c) 2012-2014, 2016, 2017, 2018, 2019 by cisco Systems, Inc.
* All rights reserved.
**---------------------------------... |
lubical/libest | test/UT/US5052/us5052.c | <gh_stars>10-100
/*------------------------------------------------------------------
* us5052.c - Unit Tests for User Story 5052 - Enable EST over CoAP when
* in server mode
*
* August, 2018
*
* Copyright (c) 2018 by cisco Systems, Inc.
* All rights reserved.
*---------------------------------------... |
lubical/libest | test/UT/US1190/us1190.c | <reponame>lubical/libest
/*------------------------------------------------------------------
* us1190.c - Unit Tests for User Story 1190/1115 - Disable TLS 1.0 support
*
* September, 2014
*
* Copyright (c) 2014, 2016 by cisco Systems, Inc.
* All rights reserved.
*------------------------------------------------... |
lubical/libest | test/util/test_utils.h | /*------------------------------------------------------------------
* test_utils.h - General purpose utilities used by all the test code
*
* June, 2013
*
* Copyright (c) 2013, 2016, 2018 by cisco Systems, Inc.
* All rights reserved.
*------------------------------------------------------------------
*/
#ifnde... |
lubical/libest | example/android/ESTClient/jni/est_wrapper.c | <reponame>lubical/libest
#include <string.h>
#include <jni.h>
#include <android/log.h>
#include "est.h"
#include <openssl/pkcs12.h>
#if 0
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#endif
#define FORMAT_PEM 1 //FIXME
#if 0
void dumpbin2(char *... |
TomorrowY/YCLPodCode | Classes/TestPod.h | //
// TestPod.h
//
//
// Created by admin on 2018/5/11.
//
#import <Foundation/Foundation.h>
@interface TestPod : NSObject
@end
|
TomorrowY/YCLPodCode | ToolClass/ToolClass.h | //
// ToolClass.h
// testCocoPods
#import <Foundation/Foundation.h>
@interface ToolClass : NSObject
@end
|
csbym/dds | src/mongo/db/logical_session_cache_impl.h | /**
* Copyright (C) 2017 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITH... |
csbym/dds | src/mongo/s/session_mongos.h | /*
* Copyright (C) 2017 MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
csbym/dds | src/mongo/db/fts/fts_chinese_tokenizer.h | #pragma once
#include "mongo/base/disallow_copying.h"
#include "mongo/base/string_data.h"
#include "mongo/db/fts/fts_tokenizer.h"
#include "mongo/db/fts/jieba/Jieba.hpp"
#include "mongo/db/fts/stemmer.h"
#include "mongo/db/fts/tokenizer.h"
#include "mongo/db/fts/unicode/string.h"
namespace mongo {
namespace fts {
cl... |
iamchiwon/BT_Knocker | arduino/knocker/bt_enabler.h | #include <SoftwareSerial.h>
const char bt_name[] = "KNOCKER_BT";
const char bt_pwd[] = "<PASSWORD>";
int bTx = 2;
int bRx = 3;
SoftwareSerial BT(bTx, bRx);
bool sendMessage(String command) {
BT.print(command);
String result = BT.readString();
if (result.startsWith("OK")) return true;
return false;
}
bool b... |
QDigital-Noir/FEU-App | FarEasternU/Pods/RDImageViewerController/Pod/Classes/M2DURLConnectionOperation/rd_M2DURLConnectionOperation.h | <filename>FarEasternU/Pods/RDImageViewerController/Pod/Classes/M2DURLConnectionOperation/rd_M2DURLConnectionOperation.h
//
// M2DURLConnection.h
// NewsPacker
//
// Created by <NAME> on 2013/04/07.
// Copyright (c) 2013年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCo... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/ActivityViewController.h | //
// ActivityViewController.h
// FarEasternU
//
// Created by Q on 7/20/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ActivityViewController : CKCalendarViewController
@property (weak, nonatomic) IBOutlet UITabBarItem *tabbar;
@end
|
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/CourseDetailViewController.h | <filename>FarEasternU/FarEasternU/ViewController/CourseDetailViewController.h
//
// CourseDetailViewController.h
// FarEasternU
//
// Created by Q on 8/6/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CourseDetailViewController : UITableViewController
@property (nonatomic,... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/ApplyViewController.h | <filename>FarEasternU/FarEasternU/ViewController/ApplyViewController.h
//
// ApplyViewController.h
// FarEasternU
//
// Created by Q on 7/20/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ApplyViewController : GUITabPagerViewController
@property (weak, nonatomic) IBOutlet ... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/NewsViewController.h | //
// NewsViewController.h
// FarEasternU
//
// Created by Q on 7/20/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NewsViewController : GUITabPagerViewController
@property (weak, nonatomic) IBOutlet UITabBarItem *tabbar;
@end
|
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/CourseMajorDetailViewController.h | //
// CourseMajorDetailViewController.h
// FarEasternU
//
// Created by Q on 8/6/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CourseMajorDetailViewController : UIViewController
@property (nonatomic, strong) NSString *courseTitle;
@end
|
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/NSCalendar+Components.h | <gh_stars>0
//
// NSCalendar+Components.h
// MBCalendarKit
//
// Created by <NAME> on 4/12/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSCalendar (Components)
- (NSInteger)weekdayInDate:(NSDate*)date;
- (NSInteger)secondsInDate:(NSDate*)date;
- (NSInteg... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/NSCalendar+DateManipulation.h | //
// NSCalendar+DateManipulation.h
// MBCalendarKit
//
// Created by <NAME> on 4/10/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSCalendar (DateManipulation)
#pragma mark - Add Units
- (NSDate *)dateByAddingSeconds:(NSUInteger)seconds toDate:(NSDate *... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/NSDateComponents+AllComponents.h | //
// NSDateComponents+AllComponents.h
// MBCalendarKit
//
// Created by <NAME> on 4/12/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDateComponents (AllComponents)
+ (NSUInteger)allComponents;
@end
|
QDigital-Noir/FEU-App | FarEasternU/Pods/RDImageViewerController/Pod/Classes/RDImageViewerController/RDImageViewerController.h | <reponame>QDigital-Noir/FEU-App<filename>FarEasternU/Pods/RDImageViewerController/Pod/Classes/RDImageViewerController/RDImageViewerController.h
//
// RDImageViewerController.h
//
// Created by <NAME> on 2014/03/20.
// Copyright (c) 2014年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "RDPagingView.... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/CalendarViewController.h | //
// CalendarViewController.h
// FarEasternU
//
// Created by Q on 9/10/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CalendarViewController : UIViewController <JTCalendarDelegate>
@property (weak, nonatomic) IBOutlet JTCalendarMenuView *calendarMenuView;
@property (wea... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/NSCalendar+Ranges.h | //
// NSCalendar+Ranges.h
// MBCalendarKit
//
// Created by <NAME> on 4/10/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSCalendar (Ranges)
#pragma mark - Units Per Minute
- (NSUInteger)secondsPerMinute;
- (NSUInteger)secondsPerMinuteUsingReferenceDate:... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/CKCalendarDelegate.h | //
// CKCalendarViewDelegate.h
// MBCalendarKit
//
// Created by <NAME> on 4/17/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#ifndef MBCalendarKit_CKCalendarViewDelegate_h
#define MBCalendarKit_CKCalendarViewDelegate_h
@class CKCalendarView;
@class CKCalendarEvent;
@protocol CKCalendarViewDelegate <... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/UIColor+HexString.h | //
// UIColor+HexString.h
// MBCalendarKit
//
// Created by <NAME> on 4/10/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
/*
Taken from this StackOverflow Answer: http://stackoverflow.com/a/7180905/224988
*/
#import <UIKit/UIKit.h>
@interface UIColor (HexString)
+ (UIColor *) colorWithHexStrin... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/NewsDetailsViewController.h | //
// NewsDetailsViewController.h
// FarEasternU
//
// Created by Q on 9/13/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NewsDetailsViewController : UIViewController
@property (nonatomic, strong) PFObject *newsObj;
@end
|
QDigital-Noir/FEU-App | FarEasternU/Pods/RDImageViewerController/Pod/Classes/RDPagingView/RDPagingView.h | <filename>FarEasternU/Pods/RDImageViewerController/Pod/Classes/RDPagingView/RDPagingView.h<gh_stars>0
//
// RDPagingView.h
// RDImageViewerController
//
// Created by <NAME> on 9/28/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, RDPagingViewForwardDire... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/CorseViewController.h | //
// CorseViewController.h
// FarEasternU
//
// Created by Q on 7/20/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CorseViewController : UIViewController
{
NSMutableIndexSet *expandedSections;
}
@property (weak, nonatomic) IBOutlet UITabBarItem *tabbar;
@end
|
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/CKCalendarView.h | //
// CKCalendarCalendarView.h
// MBCalendarKit
//
// Created by <NAME> on 4/10/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CKCalendarViewModes.h"
#import "CKCalendarEvent.h"
#import "CKCalendarDelegate.h"
#import "CKCalendarDataSource.h"
@interface CKCalendarVie... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/ApplyDetailControllers/StepOneViewController.h | //
// StepOneViewController.h
// FarEasternU
//
// Created by Q on 8/12/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface StepOneViewController : UIViewController
@property (weak, nonatomic) IBOutlet UITextView *detailTV;
@end
|
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/CalendarDetailViewController.h | <reponame>QDigital-Noir/FEU-App
//
// CalendarDetailViewController.h
// FarEasternU
//
// Created by Q on 9/25/15.
// Copyright © 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CalendarDetailViewController : UIViewController
@property (nonatomic, strong) PFObject *calendarObj;
@end
|
QDigital-Noir/FEU-App | FarEasternU/Pods/Target Support Files/Pods/Pods-environment.h |
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// AFNetworking
#define COCOAPODS_POD_AVAILABLE_AFNetworking
#define COCOAPODS_VERSION_MAJOR_... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/NSCalendar+DateComparison.h | //
// NSCalendar+DateComparison.h
// MBCalendarKit
//
// Created by <NAME> on 4/13/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSCalendar (DateComparison)
- (BOOL)date:(NSDate *)firstDate isSameDayAs:(NSDate *)anotherDate;
- (BOOL)date:(NSDate*)firstDat... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/CKCalendarCell.h | //
// CKCalendarCalendarCell.h
// MBCalendarKit
//
// Created by <NAME> on 4/10/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CKCalendarMonthCellStates.h"
@interface CKCalendarCell : UIView
@property (nonatomic, assign) CKCalendarMonthCellState state;
@property (non... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/CKTableViewCell.h | //
// CKTableViewCell.h
// MBCalendarKit
//
// Created by <NAME> on 6/2/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CKTableViewCell : UITableViewCell
@end
|
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/Library/CollapseTableView/ALCustomColoredAccessory.h | //
// ALCustomColoredAccessory.h
// ALCollapsableTableView
//
// Created by <NAME> on 5/1/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum
{
ALCustomColoredAccessoryTypeRight = 0,
ALCustomColoredAccessoryTypeUp,
ALCustomColoredAccessoryTypeDown
} ALCustomCo... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/CalendarTableViewCell.h | <filename>FarEasternU/FarEasternU/ViewController/CalendarTableViewCell.h<gh_stars>0
//
// CalendarTableViewCell.h
// FarEasternU
//
// Created by Q on 9/10/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CalendarTableViewCell : UITableViewCell
@property (nonatomic, strong) ... |
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/ContactViewController.h | <filename>FarEasternU/FarEasternU/ViewController/ContactViewController.h
//
// ContactViewController.h
// FarEasternU
//
// Created by Q on 7/20/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ContactViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIT... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/NSString+Color.h | //
// NSString+Color.h
// MBCalendarKit
//
// Created by <NAME> on 4/10/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Color)
- (UIColor *)toColor;
@end
|
QDigital-Noir/FEU-App | FarEasternU/FarEasternU/ViewController/NewsEventTableViewCell.h | <filename>FarEasternU/FarEasternU/ViewController/NewsEventTableViewCell.h<gh_stars>0
//
// NewsEventTableViewCell.h
// FarEasternU
//
// Created by Q on 8/31/15.
// Copyright (c) 2015 Q. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NewsEventTableViewCell : UITableViewCell
@property (nonatomic, stro... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/GUITabPagerViewController/GUITabPagerViewController.h | <reponame>QDigital-Noir/FEU-App
//
// GUITabPagerViewController.h
// GUITabPagerViewController
//
// Created by <NAME> on 26/02/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol GUITabPagerDataSource;
@protocol GUITabPagerDelegate;
@interface GUITabPagerViewController : ... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/MBCalendarKit/CKCalendarHeaderColors.h | //
// CKCalendarHeaderColors.h
// MBCalendarKit
//
// Created by <NAME> on 4/14/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#ifndef MBCalendarKit_CKCalendarHeaderColors_h
#define MBCalendarKit_CKCalendarHeaderColors_h
#import "NSString+Color.h"
#define kCalendarColorHeaderWeekdayTitle [@"#54545... |
QDigital-Noir/FEU-App | FarEasternU/Pods/Headers/Public/RDImageViewerController/RDImageScrollView.h | <reponame>QDigital-Noir/FEU-App
//
// RDImageScrollView.h
// RDImageViewerController
//
// Created by <NAME> on 9/28/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "RDPagingView.h"
typedef NS_ENUM(NSUInteger, RDImageScrollViewResizeMode) {
RDImageScrollViewResizeModeAsp... |
Utsav2020/URandomInteger | Example/Pods/Target Support Files/Pods-URandomInteger_Example/Pods-URandomInteger_Example-umbrella.h | <gh_stars>0
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_URandomInteger_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_UR... |
caoshenghui/DataStructures | Chapter3-StackAndQueue/src/Note/ArrQueue.c | <reponame>caoshenghui/DataStructures<gh_stars>1-10
// File: ArrQueue.c
// Author: csh
// Date: 2021/02/21
// ===================
#include <stdio.h>
#include <stdlib.h>
#define ERROR -999
#define MaxSize 100
typedef int ElementType;
typedef struct QNode* Queue;
struct QNode
{
ElementType Data[MaxSize];
... |
caoshenghui/DataStructures | Chapter3-StackAndQueue/src/Note/LinkStack.c | <reponame>caoshenghui/DataStructures
// File: LinkStack.c
// Author: csh
// Date: 2021/02/21
// ===================
#include <stdlib.h>
#include <stdio.h>
typedef int ElementType;
typedef struct SNode* Stack;
struct SNode
{
ElementType Data;
Stack Next;
};
// 建立空栈
Stack CreateStack()
{
Stack S =... |
caoshenghui/DataStructures | Chapter4-String/include/kmp.h | <filename>Chapter4-String/include/kmp.h
// File: kmp.h
// Author: csh
// Date: 2021/03/07
// ===================
#ifndef __KMP_H_
#define __KMP_H_
#include <string>
using std::string;
// 下列两个来自B站
void prefix_table(char pattern[], int prefix[], int n);
void KMP(char text[], char pattern[]);
// 以下两个来自教材
int... |
caoshenghui/DataStructures | Chapter3-StackAndQueue/src/Note/ArrStack.c | // File: ArrStack.c
// Author: csh
// Date: 2021/02/21
// ===================
#include <stdlib.h>
#include <stdio.h>
#define MaxSize 100
#define ERROR -100
typedef int ElementType;
typedef struct SNode* Stack;
struct SNode
{
ElementType Data[MaxSize];
int Top;
};
Stack CreateStack()
{
Stack S =... |
caoshenghui/DataStructures | Chapter3-StackAndQueue/src/Note/example1.c | <reponame>caoshenghui/DataStructures
// File: example1.c
// Author: csh
// Date: 2021/02/21
// ===================
#include <stdio.h>
#include <stdlib.h>
#define MaxSize 100
#define ERROR -100
typedef int ElementType;
struct DStack
{
ElementType Data[MaxSize];
int Top1; // 栈1的栈顶指针
int ... |
caoshenghui/DataStructures | Chapter2-LinearList/src/Note/LinkList.c | <reponame>caoshenghui/DataStructures
// File: LinkList.c
// Author: csh
// Date: 2021/02/20
// ===================
#include <stdio.h>
#include <stdlib.h>
typedef int ElementType;
typedef struct LNode* List;
struct LNode
{
ElementType Data;
List Next;
};
// 求表长
int Length(List Ptrl)
{
List P = P... |
caoshenghui/DataStructures | Chapter2-LinearList/src/Note/ArrList.c | // File: ArrList.c
// Author: csh
// Date: 2021/02/20
// ===================
#include <stdlib.h>
#include <stdio.h>
#define MAXSIZE 100
typedef int ElementType;
typedef struct LNode* List;
struct LNode
{
ElementType Data[MAXSIZE];
int Last; // 线性表最后一个元素
};
// 建立空表
List MakeEmpty()
{
List Ptrl... |
caoshenghui/DataStructures | Chapter3-StackAndQueue/src/Note/LinkQueue.c | <filename>Chapter3-StackAndQueue/src/Note/LinkQueue.c
// File: LinkQueue.c
// Author: csh
// Date: 2021/02/21
// ===================
#include <stdlib.h>
#include <stdio.h>
#define ERROR -999
typedef int ElementType;
struct Node
{
ElementType Data;
struct Node* Next;
};
typedef struct QNode* Queue;
s... |
Matthew-Gonzalez/fibonacci | fibonacci.c | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <omp.h>
void calculate(int n);
unsigned long long calculateFibonacci(unsigned long long n);
void calculateFactors(unsigned long long n);
int main(int argc, char **argv)
{
int n;
char *a = argv[1];
n = atoi(a);
for ... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_EXTDrawRangeElements.c | /* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glDrawRangeElementsEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * pIndices);
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElements... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_AMDDrawBuffersBlend.c | /* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glBlendFuncIndexedAMDPROC) (GLuint buf, GLenum src, GLenum dst);
typedef void (APIENTRY *glBlendFuncSeparateIndexedAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
typedef... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_GL11.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_GL11.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glAccumPROC) (GLenum op, GLfloat value);
typedef void (APIENTRY *glAlphaFuncPROC) (GLenum func, GLclampf ref);
typedef voi... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/common/org_lwjgl_opengl_GLContext.h | <gh_stars>10-100
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class org_lwjgl_opengl_GLContext */
#ifndef _Included_org_lwjgl_opengl_GLContext
#define _Included_org_lwjgl_opengl_GLContext
#ifdef __cplusplus
extern "C" {
#endif
/* Inaccessible static: current_capabilities */
... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_AMDPerformanceMonitor.c | <reponame>mk12/mycraft<filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_AMDPerformanceMonitor.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glGetPerfMonitorGroupsAMDPROC) (GLint * numGroups, GLsizei groupsSize, GLuint * group... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_AMDDebugOutput.c | <reponame>mk12/mycraft<filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_AMDDebugOutput.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glDebugMessageEnableAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint ... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_GL20.c | <gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glShaderSourcePROC) (GLuint shader, GLsizei count, const GLchar ** string, const GLint* length);
typedef GLint (APIENTRY *glCreateShaderPROC) (GLuint type);
typedef GLboolean (APIENTRY *glIsSh... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/common/org_lwjgl_DefaultSysImplementation.h | <reponame>mk12/mycraft<filename>lib/LWJGL/lwjgl-source-2/src/native/common/org_lwjgl_DefaultSysImplementation.h
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class org_lwjgl_DefaultSysImplementation */
#ifndef _Included_org_lwjgl_DefaultSysImplementation
#define _Included_org_lw... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVPrimitiveRestart.c | <gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glPrimitiveRestartNVPROC) ();
typedef void (APIENTRY *glPrimitiveRestartIndexNVPROC) (GLuint index);
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_nglPrimitiveRestartNV(JNI... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/windows/opengl/extgl_wgl.h | <reponame>mk12/mycraft
/* ----------------------------------------------------------------------------
Copyright (c) 2001-2002, <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:
* Redistrib... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVVertexArrayRange.c | /* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glVertexArrayRangeNVPROC) (GLsizei size, const GLvoid * pPointer);
typedef void (APIENTRY *glFlushVertexArrayRangeNVPROC) ();
typedef GLvoid * (APIENTRY *glAllocateMemoryNVPROC) (GLint size, GLfloat readFreque... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVDepthBufferFloat.c | <reponame>mk12/mycraft<gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glDepthRangedNVPROC) (GLdouble n, GLdouble f);
typedef void (APIENTRY *glClearDepthdNVPROC) (GLdouble d);
typedef void (APIENTRY *glDepthBoundsdNVPROC) (GLdouble zmin, GL... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_APPLEVertexArrayObject.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_APPLEVertexArrayObject.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glBindVertexArrayAPPLEPROC) (GLuint array);
typedef void (APIENTRY *glDeleteVertexArraysAPPLEPROC) (GLsiz... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_EXTFramebufferBlit.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_EXTFramebufferBlit.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glBlitFramebufferEXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/common/org_lwjgl_input_Cursor.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class org_lwjgl_input_Cursor */
#ifndef _Included_org_lwjgl_input_Cursor
#define _Included_org_lwjgl_input_Cursor
#ifdef __cplusplus
extern "C" {
#endif
#undef org_lwjgl_input_Cursor_CURSOR_ONE_BIT_TRANSPARENCY
#define org_lwjgl_in... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/linux/opengl/org_lwjgl_opengl_LinuxAWTGLCanvasPeerInfo.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/linux/opengl/org_lwjgl_opengl_LinuxAWTGLCanvasPeerInfo.c
/*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/windows/org_lwjgl_input_Cursor.c | <gh_stars>10-100
/*
* Copyright (c) 2002-2008 LWJGL Project
* 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 copyrig... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/macosx/org_lwjgl_opengl_MacOSXDisplay.h | <gh_stars>10-100
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class org_lwjgl_opengl_MacOSXDisplay */
#ifndef _Included_org_lwjgl_opengl_MacOSXDisplay
#define _Included_org_lwjgl_opengl_MacOSXDisplay
#ifdef __cplusplus
extern "C" {
#endif
#undef org_lwjgl_opengl_MacOSXDisplay... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/windows/opengl/org_lwjgl_opengl_WindowsContextImplementation.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/windows/opengl/org_lwjgl_opengl_WindowsContextImplementation.c
/*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVVertexAttribInteger64bit.c | <reponame>mk12/mycraft
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glVertexAttribL1i64NVPROC) (GLuint index, GLint64EXT x);
typedef void (APIENTRY *glVertexAttribL2i64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y);
typedef void (APIENTRY *glVertexAt... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opencl/org_lwjgl_opencl_APPLESetMemObjectDestructor.c | /* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extcl.h"
typedef CL_API_ENTRY cl_int (CL_API_CALL *clSetMemObjectDestructorAPPLEPROC) (cl_mem memobj, cl_mem_object_destructor_callback pfn_notify, void * user_data);
JNIEXPORT jint JNICALL Java_org_lwjgl_opencl_APPLESetMemObjectDestructor_n... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_GREMEDYStringMarker.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_GREMEDYStringMarker.c<gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glStringMarkerGREMEDYPROC) (GLsizei len, const GLbyte * string);
JNIEXPORT void JNICALL Ja... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_ARBShaderObjects.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_ARBShaderObjects.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glDeleteObjectARBPROC) (GLhandleARB obj);
typedef GLhandleARB (APIENTRY *glGetHandleARBPROC) (GLenum pname);
t... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glRenderbufferStorageMultisampleCoverageNVPROC) (GLenum target, GLsizei coverageSamples, GLsizei... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_EXTStencilClearTag.c | <gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glStencilClearTagEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag);
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTStencilClearTag_nglStencilClearTagEXT(JNIEnv *env, jclass clazz, ji... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_ARBPointParameters.c | /* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glPointParameterfARBPROC) (GLenum pname, GLfloat param);
typedef void (APIENTRY *glPointParameterfvARBPROC) (GLenum pname, const GLfloat * pfParams);
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointPara... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVProgram.c | <gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glLoadProgramNVPROC) (GLenum target, GLuint programID, GLsizei length, const GLvoid * string);
typedef void (APIENTRY *glBindProgramNVPROC) (GLenum target, GLuint programID);
typedef void (API... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVRegisterCombiners.c | <gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glCombinerParameterfNVPROC) (GLenum pname, GLfloat param);
typedef void (APIENTRY *glCombinerParameterfvNVPROC) (GLenum pname, const GLfloat * params);
typedef void (APIENTRY *glCombinerParame... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/common/extal.h | <gh_stars>10-100
/*
* Copyright (c) 2002-2008 LWJGL Project
* 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
... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_APPLEVertexArrayRange.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_APPLEVertexArrayRange.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glVertexArrayRangeAPPLEPROC) (GLsizei length, GLvoid * pointer);
typedef void (APIENTRY *glFlushVertexArra... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/macosx/macosx_cl.c | <reponame>mk12/mycraft
/*
* Copyright (c) 2002-2008 LWJGL Project
* 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 copyr... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_EXTGpuProgramParameters.c | /* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glProgramEnvParameters4fvEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat * params);
typedef void (APIENTRY *glProgramLocalParameters4fvEXTPROC) (GLenum target, GLuint index, GLsizei count, c... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_NVFragmentProgram.c | <gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glProgramNamedParameter4fNVPROC) (GLuint id, GLsizei length, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
typedef void (APIENTRY *glProgramNamedParameter4dNVPROC) (GLuint ... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/linux/opengl/extgl_glx.h | <reponame>mk12/mycraft
/*
* Copyright (c) 2002-2008 LWJGL Project
* 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 copyr... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/windows/org_lwjgl_opengl_WindowsKeyboard.c | /*
* Copyright (c) 2002-2008 LWJGL Project
* 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 lis... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_EXTBlendMinmax.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_EXTBlendMinmax.c
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glBlendEquationEXTPROC) (GLenum mode);
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendMinmax_nglBlendEqua... |
mk12/mycraft | lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_GL30.c | <filename>lib/LWJGL/lwjgl-source-2/src/native/generated/opengl/org_lwjgl_opengl_GL30.c<gh_stars>10-100
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef GLubyte * (APIENTRY *glGetStringiPROC) (GLenum name, GLuint index);
typedef void (APIENTRY *glClearBufferfvPROC) (GLenum bu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.