This is my program, for now it is intended to compute permutations of any string entered, but the function ox will not return the final x value. ox is the function that actually computes the permutations so the return of the x value is critical. Any help would be much appreciated, please keep in mind that I am very new to c programming so it it very likely that I am doing something very simple and basic wrong.

Code:
#include<stdio.h>
#include<string.h>
int ox(int x);


int main()
{
int x;
char input[10];
scanf("%s", input);
x=strlen(input);
ox(x);
printf("\n%d", x);
getchar();
getchar();
}


int ox(int x)
{
int a;
int x1;
int b;
b=x;
for(a=1;a!=b;a++)
{
x=(x*(b-a));
}
return x;
}