[ create a new paste ] login | about

nel

Name: Kristian
Email:
Site/Blog:
Location: Bulgaria
Default language: C
Favorite languages: C, Python, PHP
About:

Saved pastes by nel:

PHP, pasted on Sep 11:
1
2
3
4
5
<?php

$mails = "birgit_dieltjens@hotmail.com
charlinehottlet@hotmail.com
els_frijters@hotmail.com
...
view (24 lines, 1 line of output)
PHP, pasted on Jul 23:
1
2
3
4
5
<?php 

$var = 'Some Content'; // maybe null?

$cond = ( $var != '' ); // right expression returns true if $var is not empty
...
view (9 lines, 1 line of output)
PHP, pasted on Nov 23:
1
2
3
4
<?php

// mysql: 2011-11-23 16:42:08
$date = new DateTime('2011-11-23 16:42:08');
...
view (8 lines, 1 line of output)
PHP, pasted on Jun 13:
1
2
3
4
5
<?php

// Ternary operator

$a = 52;
...
view (14 lines, 1 line of output)
PHP, pasted on Sep 13:
1
2
3
4
5
<?php
//To Pull 7 Unique Random Values Out Of AlphaNumeric

//removed number 0, capital o, number 1 and small L
//Total: keys = 32, elements = 33
...
view (31 lines, 10 lines of output)
C, pasted on Jan 30:
1
2
3
4
5
#include <stdlib.h>
#include <stdio.h>


int recursiveMinimum(int my_array[],unsigned array_size);
...
view (38 lines, 19 lines of output)
C, pasted on Oct 21:
1
2
3
4
5
/*

1. Passing to function stringCheck pointer to the first (input string) and second
(output string) strings.
2. Create 'unsigned char temp' to store current array-character value, for comparsion then.
...
view (62 lines, 1 line of output)
C, pasted on Oct 21:
1
2
3
4
5
/*

1. Passing to function stringCheck pointer to the first (input string) and second
(output string) strings.
2. Create 'unsigned char temp' to store current array-character value, for comparsion then.
...
view (62 lines, 12 lines of output)
C, pasted on Oct 16:
1
2
3
4
5
// size_t strcspn ( const char * str1, const char * str2 );

#include <stdio.h>

size_t strcspnX(const char *str, const char *keys);
...
view (36 lines, 185 lines of output)
C, pasted on Oct 16:
1
2
3
4
// memcpy alternative

#include <stdio.h>
#include <string.h>
...
view (27 lines, 5 lines of output)
C, pasted on Oct 10:
1
2
3
4
5
#include <stdio.h>

int main(void)
{
	int temp[5] = {5, 20, 31, 11, 8};
...
view (25 lines, 3 lines of output)
C, pasted on Oct 10:
1
2
3
4
5
#include <stdio.h>

char *mystrstr(char *input, char *match);

int main(void)
...
view (42 lines, 1 line of output)
C, pasted on Oct 10:
1
2
3
4
5
#include <stdio.h>

char *mystrstr(char *input, char *match);

int main(void)
...
view (41 lines, 1 line of output)
C, pasted on Oct 10:
1
2
3
4
5
#include <stdio.h>

int mystrcmp(const char *str1, const char *str2);

int main(void)
...
view (33 lines, 1 line of output)
C, pasted on Oct 10:
1
2
3
4
#include <stdio.h>


void CopyNumbers(int *first, int *second, unsigned MAXN);
...
view (30 lines, 10 lines of output)
C, pasted on Oct 10:
1
2
3
4
5
#include <stdio.h>
#include <string.h>

int main(void)
{
...
view (22 lines, 1 line of output)
C, pasted on Oct 10:
1
2
3
4
5
#include <stdio.h>
#include <string.h>

int main(void)
{
...
view (24 lines, 1 line of output)
C, pasted on Sep 12:
1
2
3
4
#include <stdio.h>
#include <ctype.h>

void display(int n);
...
view (27 lines, 2 lines of output)
C, pasted on Sep 8:
1
2
3
4
5
#include <stdio.h>

int main(void)
{
	
...
view (33 lines, 7 lines of output)
C, pasted on Sep 7:
1
2
3
4
5
#include <stdio.h>

int main(void)
{
	
...
view (32 lines, 4 lines of output)
C, pasted on Sep 7:
1
2
3
4
5
#include <stdio.h>

int main(void)
{
	
...
view (29 lines, 4 lines of output)
C, pasted on Sep 7:
1
2
3
4
5
/* 

Razlagane na chislo na prosti deliteli

1. Polagame i = 2;
...
view (38 lines, 12 lines of output)
C, pasted on Jul 13:
1
2
3
4
5
/* powers of first 10 numbers, stored in array-struct */

#include <stdio.h>

struct powers {
...
view (28 lines, 12 lines of output)
C, pasted on Apr 25:
1
2
3
4
5
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
...
view (37 lines, 2 lines of output)
C, pasted on Apr 25:
1
2
3
4
5
#include <stdio.h>

int main(void)
{
   int CurrentNum;
...
view (28 lines, 1 line of output)
C, pasted on Mar 29:
1
2
3
4
5
#include <stdio.h>

int main(void)
{
    int input;
...
view (17 lines, 2 lines of output)
C, pasted on Feb 21:
1
2
3
4
5
#include <stdio.h>

int main(void)
{
	int i = 0;
...
view (13 lines, 1 line of output)
C, pasted on Feb 15:
1
2
3
4
#include <stdio.h>
#include <stdlib.h>

int check_num(char *p); // прототип на функцията за проверка на подадените аргументи (цифрите), използваме указател (*p).
...
view (24 lines, 2 lines of output)
C, pasted on Feb 15:
1
2
3
4
#include <stdio.h>
#include <stdlib.h>

int check_num(char *p); // прототип на функцията за проверка на подадените аргументи (цифрите), използваме указател (*p).
...
view (31 lines, 2 lines of output)
C, pasted on Feb 15:
1
2
3
4
5
#include <stdio.h>

int main(void)
{
   double n = 25.52;
...
view (24 lines, 4 lines of output)
C, pasted on Feb 7:
1
2
3
4
5
#include <stdio.h>
#include <math.h>

int main(void)
{
...
view (17 lines, 1 line of output)