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
<?php | |
// src/Controller/ExceptionController.php | |
namespace App\Controller; | |
use FOS\RestBundle\Util\ExceptionValueMap; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; |
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 <stdlib.h> | |
#include <stdio.h> | |
int match(char *str1, char *str2) | |
{ | |
int i, j; | |
// on va jusqu'au bout de la deuxieme chaine | |
for (i = 0, j = 0; str2[j] != '\0'; i++, j++) { | |
// si la premiere chaine est finie avant la deuxieme c'est dead |