This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int my_strstr(char *haystack, char *needle) | |
{ | |
int offset = -1; | |
//for (s = str; *s; ++s); | |
char *_haystack; | |
char *_needle = needle; // wtf | |
for (_haystack = haystack; *_haystack; ++_haystack) | |
{ | |
if (*_haystack == *_needle) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int my_strlen(char *str); | |
void my_strcpy(char *source, char *target); | |
int my_strstr(char *haystack, char *needle); | |
int main(int argc, char *argv[]) | |
{ | |
if (argc == 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int my_strlen(char *str); | |
void my_strcpy(char *source, char *target); | |
int my_strstr(char *haystack, char *needle); | |
int main() | |
{ | |
char *wut = "123wuwut456\0"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//***************************************************************** | |
// HashTable.cpp | |
// HashTable | |
// | |
// Created by Kar Beringer on June 18, 2014. | |
// | |
// This header file contains the Hash Table class definition. | |
// Hash Table array elements consist of Linked List objects. | |
//***************************************************************** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Windward Reflexil patch for XP and Gold ([email protected]) | |
#region " Imports " | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using TNet; | |
#endregion | |
#region " Referenced assemblies " | |
// - mscorlib v2.0.5.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// version 3, final | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <cstdlib> // atoi | |
#include <iomanip> // set, setfill | |
#include <cmath> // pow | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
setdllcharacteristics | |
Source code put in public domain by Didier Stevens, no Copyright | |
https://DidierStevens.com | |
Use at your own risk | |
Editor tab stop value = 2 | |
Shortcomings, or todo's ;-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Copyright (c) 1994 | |
* Hewlett-Packard Company | |
* | |
* Permission to use, copy, modify, distribute and sell this software | |
* and its documentation for any purpose is hereby granted without fee, | |
* provided that the above copyright notice appear in all copies and | |
* that both that copyright notice and this permission notice appear | |
* in supporting documentation. Hewlett-Packard Company makes no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// developed by Riketta - [email protected] | |
#include <iostream> | |
#include <vector> | |
#include <list> | |
#include <map> | |
using namespace std; | |
class Node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdio.h> | |
#include <stdlib.h> | |
using namespace std; | |
int main() | |
{ | |
cout << "Enter hex nubmer:" << endl; | |
int n = 0; |
OlderNewer