repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/malloc/imalloc.h
/* imalloc.h -- internal malloc definitions shared by source files. */ /* Copyright (C) 2001-2003 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/template.c
<reponame>xaptum-eng/zebra /* template - example template for loadable builtin */ /* See Makefile for compilation details. */ #include <config.h> #if defined (HAVE_UNISTD_H) # include <unistd.h> #endif #include "bashansi.h" #include <stdio.h> #include <errno.h> #include "builtins.h" #include "shell.h" #include "ba...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/dprintf.c
<gh_stars>100-1000 /* dprintf -- printf to a file descriptor */ /* Copyright (C) 2008-2010 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/intl/os2compat.h
<reponame>xaptum-eng/zebra<filename>vendor/github.com/coreswitch/openconfigd/cli/lib/intl/os2compat.h /* os2compat.h - OS/2 compatibility defines. */ /* This file is intended to be included from config.h Copyright (C) 2001-2002, 2005-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/clktck.c
<reponame>xaptum-eng/zebra /* clktck.c - get the value of CLK_TCK. */ /* Copyright (C) 1997 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/print.c
/* * print -- loadable ksh-93 style print builtin */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash 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,...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/printenv.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/printenv.c /* * printenv -- minimal builtin clone of BSD printenv(1). * * usage: printenv [varname] * */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is free software: you can redis...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/perl/bperl.c
/* * perl builtin */ #include <config.h> #include <fcntl.h> #include <errno.h> #include "builtins.h" #include "shell.h" #ifndef errno extern int errno; #endif extern char **make_builtin_argv (); extern char **export_env; extern int perl_main(); bperl_builtin(list) WORD_LIST *list; { char **v; int c, r; v = ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/input_avail.c
<reponame>xaptum-eng/zebra /* input_avail.c -- check whether or not data is available for reading on a specified file descriptor. */ /* Copyright (C) 2008,2009 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modif...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/zmapfd.c
<reponame>xaptum-eng/zebra /* zmapfd - read contents of file descriptor into a newly-allocated buffer */ /* Copyright (C) 2006 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU Gene...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/bashline.c
<reponame>xaptum-eng/zebra<filename>vendor/github.com/coreswitch/openconfigd/cli/bashline.c /* bashline.c -- Bash's interface to the readline library. */ /* Copyright (C) 1987-2013 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/winsize.c
/* winsize.c - handle window size changes and information. */ /* Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the F...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/unlink.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/unlink.c<gh_stars>100-1000 /* unlink - remove a directory entry */ /* Should only be used to remove directories by a superuser prepared to let fsck clean up the file system. */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/malloc/watch.h
<reponame>xaptum-eng/zebra<filename>vendor/github.com/coreswitch/openconfigd/cli/lib/malloc/watch.h /* watch.h - definitions for tables for keeping track of allocated memory */ /* Copyright (C) 2001-2003 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne-Again SHell. Bash is free softwa...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/CWRU/misc/sigstat.c
<reponame>xaptum-eng/zebra /* * sigstat - print out useful information about signal arguments * * <NAME> * <EMAIL> */ /* Copyright (C) 1991-2009 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under th...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/oslib.c
<gh_stars>100-1000 /* oslib.c - functions present only in some unix versions. */ /* Copyright (C) 1995,2010 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/logname.c
/* logname - print login name of current user */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash 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, eithe...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/whoami.c
/* * whoami - print out username of current user */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash 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, ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/arrayfunc.c
<reponame>xaptum-eng/zebra<filename>vendor/github.com/coreswitch/openconfigd/cli/arrayfunc.c<gh_stars>100-1000 /* arrayfunc.c -- High-level array functions used by other parts of the shell. */ /* Copyright (C) 2001-2011 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/support/printenv.c
<reponame>xaptum-eng/zebra<filename>vendor/github.com/coreswitch/openconfigd/cli/support/printenv.c<gh_stars>100-1000 /* printenv -- minimal clone of BSD printenv(1). usage: printenv [varname] <NAME> <EMAIL> */ /* Copyright (C) 1997-2002 Free Software Foundation, Inc. This file is part of GNU Bash, the ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/tty.c
/* tty - return terminal name */ /* See Makefile for compilation details. */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fr...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/strcasestr.c
/* strcasestr.c - Find if one string appears as a substring of another string, without regard to case. */ /* Copyright (C) 2000 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/glob/glob_loop.c
<reponame>xaptum-eng/zebra /* Copyright (C) 1991-2005 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash 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, eit...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/ln.c
/* ln - make links */ /* See Makefile for compilation details. */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash 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...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/CWRU/misc/open-files.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/CWRU/misc/open-files.c /* open-files -- report files a process has open */ /* Copyright (C) 1989-2009 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it u...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/intl/intl-compat.c
<reponame>xaptum-eng/zebra /* intl-compat.c - Stub functions to call gettext functions from GNU gettext library. */ /* Copyright (C) 1995, 2000-2003, 2005-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or modify it under the terms of the...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/mkdir.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/mkdir.c /* mkdir - make directories */ /* See Makefile for compilation details. */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or modify ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/malloc/trace.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/lib/malloc/trace.c /* trace.c - tracing functions for malloc */ /* Copyright (C) 2001-2003 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the te...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/readline/util.c
<gh_stars>100-1000 /* util.c -- readline utility functions */ /* Copyright (C) 1987-2012 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistrib...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/zwrite.c
/* zwrite - write contents of buffer to file descriptor, retrying on error */ /* Copyright (C) 1999-2002 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/tee.c
<reponame>xaptum-eng/zebra /* tee - duplicate standard input */ /* See Makefile for compilation details. */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Li...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/CWRU/misc/errlist.c
/* * If necessary, link with lib/sh/libsh.a */ /* Copyright (C) 1998-2009 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash 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 Soft...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/intl/eval-plural.h
<reponame>xaptum-eng/zebra<filename>vendor/github.com/coreswitch/openconfigd/cli/lib/intl/eval-plural.h /* eval-plural.c - Plural expression evaluation. */ /* Copyright (C) 2000-2002, 2006-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or m...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/mailcheck.h
/* mailcheck.h -- variables and function declarations for mail checking. */ /* Copyright (C) 1987,1991,2001,2003,2005,2006,2008,2009 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GN...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/netconn.c
<reponame>xaptum-eng/zebra<gh_stars>100-1000 /* netconn.c -- is a particular file descriptor a network connection?. */ /* Copyright (C) 2002-2005 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the te...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/support/recho.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/support/recho.c /* recho -- really echo args, bracketed with <> and with invisible chars made visible. <NAME> <EMAIL> */ /* Copyright (C) 2002-2005 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/CWRU/misc/hpux10-dlfcn.h
/* * HPUX 10.x stubs to implement dl* in terms of shl* * * Not needed for later versions; HPUX 11.x has dlopen() and friends. * * configure also needs to be faked out. You can create a dummy libdl.a * with stub entries for dlopen, dlclose, dlsym, and dlerror: * * int dlopen() { return(0);} * int dlclose() { r...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/bashhist.h
<gh_stars>100-1000 /* bashhist.h -- interface to the bash history functions in bashhist.c. */ /* Copyright (C) 1993-2009 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General P...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/strstr.c
<gh_stars>100-1000 /* strstr - find a substring within a string */ /* Copyright (C) 1994, 1999 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/unicode.c
<reponame>xaptum-eng/zebra /* unicode.c - functions to convert unicode characters */ /* Copyright (C) 2010-2012 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/sync.c
/* sync - sync the disks by forcing pending filesystem writes to complete */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fre...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/hello.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/examples/loadables/hello.c<gh_stars>100-1000 /* Sample builtin to be dynamically loaded with enable -f and create a new builtin. */ /* See Makefile for compilation details. */ /* Copyright (C) 1999-2009 Free Software Foundation, Inc. This file is part o...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/subst.c
/* subst.c -- The part of the shell that does parameter, command, arithmetic, and globbing substitutions. */ /* ``Have a little faith, there's magic in the night. You ain't a beauty, but, hey, you're alright.'' */ /* Copyright (C) 1987-2013 Free Software Foundation, Inc. This file is part of GNU Bash, th...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/builtins/psize.c
<gh_stars>100-1000 /* psize.c - Find pipe size. */ /* Copyright (C) 1987, 1991 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash 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 S...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/intl/plural-exp.c
<gh_stars>100-1000 /* plural-exp.c - Expression parsing for plural form selection. */ /* Copyright (C) 2000, 2001, 2005-2009 Free Software Foundation, Inc. Written by <NAME> <<EMAIL>>, 2000. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or modify it under the terms of ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/support/mksignames.c
/* mksignames.c -- Create and write `signames.h', which contains an array of signal names. */ /* Copyright (C) 1992-2006 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/intl/gmo.h
/* gmo.h - Description of GNU message catalog format: general file layout. */ /* Copyright (C) 1995, 1997, 2000-2002, 2005-2009 Free Software Foundation, Inc. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/strtrans.c
<gh_stars>100-1000 /* strtrans.c - Translate and untranslate strings with ANSI-C escape sequences. */ /* Copyright (C) 2000-2011 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU Ge...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/malloc/shmalloc.h
<filename>vendor/github.com/coreswitch/openconfigd/cli/lib/malloc/shmalloc.h /* Functions (currently) for use by the shell to do malloc debugging and tracking. */ /* Copyright (C) 2001-2003 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne-Again SHell. Bash is free software: you can re...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/strnlen.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/lib/sh/strnlen.c<gh_stars>100-1000 /* strnlen - return length of passed string, with length limit */ /* Copyright (C) 2004 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/zgetline.c
<gh_stars>100-1000 /* zgetline - read a line of input from a specified file descriptor and return a pointer to a newly-allocated buffer containing the data. */ /* Copyright (C) 2008,2009 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/pathphys.c
<gh_stars>100-1000 /* pathphys.c -- return pathname with all symlinks expanded. */ /* Copyright (C) 2000 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/sh/rename.c
<filename>vendor/github.com/coreswitch/openconfigd/cli/lib/sh/rename.c /* * rename - rename a file */ /* Copyright (C) 1999 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU Gener...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/intl/relocatable.h
/* relocatable.h - Provide relocatable packages. */ /* Copyright (C) 2003, 2005-2009 Free Software Foundation, Inc. Written by <NAME> <<EMAIL>>, 2003. This file is part of GNU Bash. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/cli.h
<gh_stars>100-1000 /* cli.h -- openconfig shell extension for bash. */ /* Copyright (C) 2016 Hash-Set Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash 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 Soft...
xaptum-eng/zebra
vendor/github.com/coreswitch/openconfigd/cli/lib/readline/rltypedefs.h
/* rltypedefs.h -- Type declarations for readline functions. */ /* Copyright (C) 2000-2011 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistr...
robinsph21/Knapsack-Problem
knapsack.c
<gh_stars>0 #include <stdio.h> #include <stdlib.h> #include <string.h> #include "knapsack.h" // knapsack() error checks and then runs the reccursive algorithm // @param int w: max weight // @param int knapsack_item[]: array of knapsack_items // @param int len: length of items // // @return int total_value or 0(INT_ERR...
robinsph21/Knapsack-Problem
knapsack.h
<gh_stars>0 #ifndef KNAPSACK_H #define KNAPSACK_H #define INT_ERR 0 typedef struct knapsack_item { int weight; int value; } knapsack_item; int knapsack(int w, knapsack_item * items[], int len); int knapsack_r(int w, knapsack_item * items[], int len, int index); int max(int a, int b); knapsack_item * create_k...
Thinkaboutmin/CheckMeOut
tests/test_fixtures.h
<gh_stars>0 #ifndef TEST_FIXTURE_H #define TEST_FIXTURE_H #include "../src/order.h" #include "../src/item.h" #include "../src/cashierView.h" #include <gtest/gtest.h> int main(int argc, char **argv); #endif
Thinkaboutmin/CheckMeOut
src/order.h
#ifndef ORDER_H #define ORDER_H #include <vector> #include "item.h" class order { private: std::vector<item> itemList; double tax; bool closed; public: order(); order(double); public: void addItem(item); std::vector <item> getItems(); double getSubtotal(); double getTax(); ...
vipul43/CS3110_OS_LAB
lab2/src/main.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "matrix.h" #include "matrixmath.h" #include "transformations.h" #include "ppm.h" char *concatenate(char*inppath) { int len1 = strlen(inppath); char *result = (char*)malloc(sizeof(char)*(len1+5)); int flag = 0; int idx; if(inppath[len1-1] !=...
vipul43/CS3110_OS_LAB
lab1/inputs.c
<reponame>vipul43/CS3110_OS_LAB #include<stdio.h> #include<stdlib.h> #define MAX_SUBJECTS 4 #define MAX_COURSES 14 #define MAX_DEPTS 4 // Array holding course codes in 4 branches CE, CS, EE, ME const char *course_code[MAX_DEPTS][MAX_COURSES] = { "CE2010", "CE2030", "CE2050", "CE2150", "CE3010", "CE3030", "CE30...
vipul43/CS3110_OS_LAB
lab7/ipc.c
<reponame>vipul43/CS3110_OS_LAB #include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<sys/types.h> #include<string.h> #include<fcntl.h> #include<time.h> #define RACE_END 1000 int main(){ int fd1[2]; int fd2[2]; int fd3[2]; int fd4[2]; int fd5[2]; int fd6[2]; int fd7[2]; int fd8[2]; ...
vipul43/CS3110_OS_LAB
lab2/headers/ppm.h
#ifndef PPM #define PPM #include <stdio.h> #include "matrix.h" struct image { unsigned int height, width; int maxval; matrix img; }; typedef struct image* image; void errmessage(char *); void ignoreSpaces(FILE*); void skipComments(FILE*); image readPPM(char *); int writePPM(image, char *); void freeimage(image...
vipul43/CS3110_OS_LAB
lab2/src/matrixmath.c
<gh_stars>0 #include "matrixmath.h" #include "matrix.h" #include "transformations.h" #include <stdlib.h> #include <stdio.h> int abs(int x) { if(x >=0) return x; else return -1*x; } int multiply(matrix P, matrix A, matrix B) /*multiplies A and B and stores the result in P. Note that to call this function, ...
vipul43/CS3110_OS_LAB
lab2/headers/matrix.h
#ifndef MATRIX #define MATRIX typedef struct matrix { unsigned int rows; unsigned int cols; int **R; int **G; int **B; }* matrix; int matrixalloc(matrix); matrix creatematrix(int rows, int cols); matrix emptyMatrixStruct(); void freematrix(matrix); matrix paddedSlidingWindow(matrix, int, int); matrix flatte...
vipul43/CS3110_OS_LAB
lab2/src/matrix.c
<gh_stars>0 #include "matrix.h" #include <stdlib.h> #include <stdio.h> matrix emptyMatrixStruct() //allocates space for a matrix struct and returns pointer to it. { matrix res = (matrix)malloc(sizeof(struct matrix)); if(!res) return NULL; return res; } int matrixalloc(matrix X) { if(X == NULL) return 1; if(...
vipul43/CS3110_OS_LAB
lab2/src/transformations.c
<filename>lab2/src/transformations.c #include "matrixmath.h" #include "matrix.h" #include "transformations.h" #include "ppm.h" #include <stdlib.h> #include <stdio.h> matrix flipTrans(matrix X) { if(!X) return X; matrix flipped = emptyMatrixStruct(); matrix transformation = flippedIdentity(X->cols); if(multiply...
vipul43/CS3110_OS_LAB
lab5/xv6/test_v2paddr.c
#include "types.h" #include "user.h" int main(int argc, char *argv[]) { uint pa1, pa2; uint va1 = 0xFA5; uint va2 = 0xFA1; int ret_status = v2paddr(&va1, &pa1); if(ret_status==0) printf(1, "PA1: %x\n", pa1); else printf(1, "VA1 is invalid\n"); ret_status = v2paddr(&va2, &pa2); if(ret_status==0) printf(1,...
vipul43/CS3110_OS_LAB
lab2/headers/transformations.h
#ifndef TRANSFORMATIONS #define TRANSFORMATIONS #include "matrix.h" #include "ppm.h" matrix flipTrans(matrix); int applyBlur(image); int applyFlipping(image); int applyCenterFlipping(image, int, int); matrix blur(matrix, int); int applyDeepFry(image, int); matrix deepFry(matrix, int); matrix fryKernel(int); matrix sob...
vipul43/CS3110_OS_LAB
lab7/itc_random.c
#include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<pthread.h> #include<time.h> #include<string.h> #define RACE_END 1000 #define GOD_PROB 0.2 int turn = 0; int race_ended = 0; int slp = 0; typedef struct positions{ int hare_pos; int tort_pos; } positions; void *tort(void *args){ positions *pos = (po...
vipul43/CS3110_OS_LAB
lab2/headers/matrixmath.h
#include "matrix.h" #ifndef MATRIXMATH #define MATRIXMATH int multiply(matrix , matrix , matrix ); matrix flippedIdentity(int); matrix ones(int, int); int scale(matrix, float); int scaleSeparately(matrix, float, float, float); matrix convolution(matrix, matrix, int); int subtract(matrix, matrix, matrix); int add(matri...
vipul43/CS3110_OS_LAB
lab2/src/ppm.c
#include "matrix.h" #include "ppm.h" #include "stdlib.h" #include <stdio.h> #include <stdlib.h> void errmessage(char *error) { fprintf(stderr, "%s\n", error); exit(1); } void ignoreSpaces(FILE *fp) { char ch = getc(fp); while(ch == ' ' || ch == '\n' || ch == '\t') { ch = getc(fp); } ungetc(ch, fp); ...
vipul43/CS3110_OS_LAB
lab4/xv6/get_syscall_counts.c
#include "types.h" #include "user.h" #include "syscall.h" int main(int argc, char *argv[]) { printf(1, "initial getcount count %d\n", getcount(SYS_getcount)); printf(1, "initial fork count %d\n", getcount(SYS_fork)); if (fork() == 0) { printf(1, "child fork count %d\n", getcount(SYS_fork)); ...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/pool/global_avgpool.h
/* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for average roi-pooling. Written by <NAME> and <NAME> Modified https://github.com/dvlab-research/PointGroup -------------------------------------------------------- */ #ifndef AVGROIPOOL_H #define AVGRO...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/pool/indice_maxpool_functor.h
<gh_stars>10-100 /* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for sparse max pool. Written by <NAME> and <NAME> # Modified from https://github.com/traveller59/spconv/tree/v1.1 -------------------------------------------------------- */ #ifndef SPA...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/utils/datatype.h
<gh_stars>10-100 #ifndef DATATYPE_H #define DATATYPE_H #include <cstdint> #include <array> #include <vector> #include <queue> #include <google/dense_hash_map> using Int = int32_t; template <Int dimension> using Point = std::array<Int, dimension>; template <Int dimension> struct IntArrayHash{ std::size_t operator(...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/voxelize/voxel2point.h
<reponame>Gorilla-Lab-SCUT/SS-Conv /* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for voxel2point mapping. Written by <NAME> and <NAME> -------------------------------------------------------- */ #ifndef VOXEL2POINT_H #define VOXEL2POINT_H...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/ss_conv_ops.h
<filename>SS_Conv_lib/src/ss_conv_ops.h /* -------------------------------------------------------- Sparse Steerable Convolution Lib. The Declarations of Functions for Different Data Types. Written by <NAME> and <NAME> Modified https://github.com/dvlab-research/PointGroup ---------------------------------------------...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/voxelize/voxelize_cuda_kernel.h
<reponame>Gorilla-Lab-SCUT/SS-Conv<gh_stars>10-100 /* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for voxelization. Written by <NAME> and <NAME> Modified https://github.com/dvlab-research/PointGroup ---------------------------------------------------...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/voxelize/voxelize.h
/* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for voxelization. Written by <NAME> and <NAME> Modified https://github.com/dvlab-research/PointGroup -------------------------------------------------------- */ #include "voxelize_cuda_kernel.h" // decl...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/conv/indice_functor.h
<reponame>Gorilla-Lab-SCUT/SS-Conv<filename>SS_Conv_lib/src/conv/indice_functor.h /* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for sparse convolution. Written by <NAME> and <NAME> # Modified from https://github.com/traveller59/spconv/tree/v1.1 ----...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/conv/reordering_functor.h
<filename>SS_Conv_lib/src/conv/reordering_functor.h /* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for sparse convolution. Written by <NAME> and <NAME> # Modified from https://github.com/traveller59/spconv/tree/v1.1 ----------------------------------...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/pool/indice_avgpool_functor.h
/* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for average sparse pooling. Written by <NAME> and <NAME> # Modified from https://github.com/traveller59/spconv/tree/v1.1 -------------------------------------------------------- */ #ifndef SPARSE_AVGPOO...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/pool/indice_maxpool.h
<reponame>Gorilla-Lab-SCUT/SS-Conv /* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for sparse max pool. Written by <NAME> and <NAME> # Modified from https://github.com/traveller59/spconv/tree/v1.1 ------------------------------------------------------...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/utils/cuda_utils.h
<filename>SS_Conv_lib/src/utils/cuda_utils.h // Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #ifndef _CUDA_UTILS_H #define _CUDA_UTILS_H #include <ATen/ATen.h> #include <ATen/...
Gorilla-Lab-SCUT/SS-Conv
SS_Conv_lib/src/pool/global_maxpool.h
/* -------------------------------------------------------- Sparse Steerable Convolution Lib. c++/cuda source code for max roi-pooling. Written by <NAME> and <NAME> Modified https://github.com/dvlab-research/PointGroup -------------------------------------------------------- */ #ifndef MAXROIPOOL_H #define MAXROIPOO...
durovsky/simple_heap
include/simple_heap_lib.h
/*********************************************************************************************//** * @file simple_heap_lib.h * * class Robot handles communication using basic robot driver without MoveIt library * * Copyright (c) * <NAME> * Department of Robotics * Technical University Kosice * February 2015 * * A...
969661780/CALayerDemo
ObjCALayer/YMView.h
// // YMView.h // ObjCALayer // // Created by mt y on 2017/10/30. // Copyright © 2017年 mt y. All rights reserved. // #import <UIKit/UIKit.h> @interface YMView : UIView @end
969661780/CALayerDemo
ObjCALayer/ViewController.h
<gh_stars>0 // // ViewController.h // ObjCALayer // // Created by mt y on 2017/10/30. // Copyright © 2017年 mt y. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
969661780/CALayerDemo
ObjCALayer/AppDelegate.h
// // AppDelegate.h // ObjCALayer // // Created by mt y on 2017/10/30. // Copyright © 2017年 mt y. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
ademirtug/digital_globe
quadtile.h
<gh_stars>1-10 #ifndef __QUADTILE_H__ #define __QUADTILE_H__ #include <array> class spheroid; float ytolat(float y); int GetEncoderClsid(const WCHAR* format, CLSID* pClsid); glm::vec3 calc_normal(glm::vec3 pt1, glm::vec3 pt2, glm::vec3 pt3); double N(double phi); glm::vec3 lla2ecef(double lat_indegrees, double lon_...
ademirtug/digital_globe
camera.h
#ifndef __CAMERA_H__ #define __CAMERA_H__ #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include "glm/gtc/type_ptr.hpp" #include "glm/gtx/euler_angles.hpp" using namespace std; class camera { public: double cdist; int zoomlevel; int cameralevel; virtual int getzoomlevel() { return 2; }; virtu...
ademirtug/digital_globe
http_client.h
<reponame>ademirtug/digital_globe<filename>http_client.h #ifndef __HTTP_CLIENT__ #define __HTTP_CLIENT__ #include <WinInet.h> class http_client { HINTERNET hInternet, hConnect, hRequest, hUrl; public: std::string get_page(std::string url) { std::string result; char buffer[4096]; memset(buffer, 0, 4096); st...
ademirtug/digital_globe
texture.h
<gh_stars>1-10 #ifndef __TEXTURE_H__ #define __TEXTURE_H__ class texture { public: texture(); texture(const std::string& filename); virtual void load(const std::string& filename); virtual void unload(); GLuint vboid_texture; }; class bmp : public texture { public: bmp(); bmp(const std::string& filename); ~...
ademirtug/digital_globe
scene.h
#ifndef __SCENE_H__ #define __SCENE_H__ #include "stdafx.h" #include "quadtile.h" #include "camera.h" #include "sphere.h" class scene { public: scene(); void generate_shaders(); void draw(); shared_ptr<spheroid> earth; shared_ptr<camera> cam; GLuint vao_mesh_id, vao_lights_id; std::vector<shared_ptr<imesh>> m...
ademirtug/digital_globe
light.h
#ifndef __LIGHT_H__ #define __LIGHT_H__ #include "stdafx.h" class ilight { public: virtual void shine() {}; glm::vec3 ambient, diffuse, specular, color; }; class pointlight : public ilight, public imesh { protected: virtual void init(); public: pointlight(); pointlight(const std::string& filename); pointli...
ademirtug/digital_globe
mesh.h
#ifndef __MESH_H__ #define __MESH_H__ #include "stdafx.h" #include <sstream> #include <iterator> using namespace std; class scene; vector<glm::vec3> arr2vec3(float* data, int size); void arr2ind(float* data, int size, vector<glm::vec3>& vertices, vector<int>& indices); template<typename Out> void split(const std::s...
ademirtug/digital_globe
sphere.h
#ifndef __SPHERE_H__ #define __SPHERE_H__ #include "quadtile.h" #include "threadpool.h" class spheroid { public: int a, b; quadtile tiles; std::mutex mxpreparedtiles; std::vector<shared_ptr<quadtile>> preparedtiles; threadpool pool; spheroid(double _a, double _b); vector<quadtile*> getdisplayedtiles(g...
ademirtug/digital_globe
stdafx.h
<gh_stars>1-10 #pragma once #include "targetver.h" #include <tchar.h> #include <iostream> #include <string> #include <initializer_list> #include <memory> #include <vector> #include <map> #include <fstream> #include <sstream> #include <iomanip> #include <windows.h> #include <set> #include <windows.h> #include <algori...