CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 15:04:49 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=b9f993fae97fd141add908a6b253c06b3f62f114c2ca97c329a8f6ee12f42509a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22HmqbVOnWdKeCFcK9j1UhZ8GAoCeh0cIY%22%3B%7D; HttpOnly; Path=/
cf-ray: 98dfbb4d6d86999b-BLR
pheasant pc lab - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <ctype.h>
- #define NMAX 1000
- #define NULL_CHECK(p) if (p == NULL) return p;
- char *pheasant(char *s) {
- char *res = NULL;
- char *token = strtok(s, " ");
- int n = strlen(token) + 2;
- res = calloc(n, sizeof(char));
- strcpy(res, token);
- res[n-2] = '-';
- NULL_CHECK(res);
- token = strtok(NULL, " ");
- while (token) {
- if (tolower(token[0]) == tolower(res[n - 4]) && tolower(token[1]) == tolower(res[n - 3])) {
- n += strlen(token) + 1;
- res = realloc(res, sizeof(char) * n);
- NULL_CHECK(res);
- strcat(res, token);
- strcat(res, "-");
- }
- token = strtok(NULL, " ");
- }
- res[n - 2] = 0;
- return res;
- }
- int main(void) {
- static char s[NMAX] = "Fazan antic";
- char *res = pheasant(s);
- if (res == NULL) {
- fprintf(stderr, "alloc error!\n");
- exit(-1);
- }
- puts(res);
- free(res);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 8 sec ago | 0.15 KB
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 21 sec ago | 0.15 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 32 sec ago | 0.15 KB
-
⭐⭐⭐Make $1500 in 20 minutes⭐⭐
Java | 45 sec ago | 0.15 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 56 sec ago | 0.15 KB
-
⭐⭐⭐Exchange Exploit T 3⭐⭐
Java | 1 min ago | 0.15 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 1 min ago | 0.15 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 1 min ago | 0.15 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand