CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: DoHander
Forum: Fluent UDF and Scheme Programming July 20, 2010, 19:32
Replies: 3
Views: 1,637
Posted By DoHander
I think I know what you want, try this piece of...

I think I know what you want, try this piece of code:

========================
int i,n;
strcpy(aux,"propusaurus");
printf("Content = %s\tLength = %d\n",aux,strlen(aux));

/*Empty the string,...
Forum: Fluent UDF and Scheme Programming July 18, 2010, 17:54
Replies: 3
Views: 1,637
Posted By DoHander
char aux[20]; int i,n; ...

char aux[20];
int i,n;
strcpy(aux,"propusaurus");
printf("%s\n",aux);
n=strlen(aux);
for(i=0;i<n;i++)aux[i]=' ';
printf("%s\n",aux);
printf("%d\n",n);
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 18:58.