Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/venkat/old/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/venkat/old/ism2015004_3.c
#include<stdio.h>
char *str(char s[100])
{
	char *p,*q,*r;
	int i,j,k=0;
	char l[27],m[100];
	p=s;
	q=m;
	r=q;
	for(i=0;i<26;i++)
	{
		char a='a';
		l[i]=a;
		a++;
	}l[26]='\0';
	for(i=0;*(p+i)!='\0';i++)
	{
		for(j=0;l[j]!='\0';j++)
		{	
			if(*(p+i)==l[j])
			{
				*(q+k)=l[j];
				k++;	


			}
		}	
	}
	*(q+k)='\0';
	return r;

}
void main()
{
	char a[100];
	char *b;
	scanf("%s",a);
	b=str(a);
	printf("%s",b);
}


ZeroDay Forums Mini