#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
using namespace std;
const int maxn=10010;
char* prefix(char* haystack_start, char* needle_start)
{
char* haystack = haystack_start;
char* needle = needle_start;
while(*haystack && *needle){
if(*(haystack++)!=*(needle++)) return NULL; //填空位置
}
if(*needle) return NULL;
return haystack_start;
}
int main(){
cout<<prefix("abcd1234","abc")<<endl;
}