}

	}
}

int checkString(int aux, char line[1000], char *info)
{
	int z = 0;
	int size = 0;
	while (1)
	{
		if (line[aux + z] == '%')
		{
			if (line[aux + z + 1] =='s' || line[aux + z + 1] == 'd')
			{
				return -1;
			}
		}
		if (line[aux + z] == '\n' || line[aux + z] == '\0' || line[aux + z] == '\r')
		{
			//printf("==%s==\n", line);
			return size;
		}
		else
		{
			size += 1;
			info[z] = line[aux + z];
			//printf("==%s==\n", line);
		}
		z++;
	}
}
<commit_before>WordPress on Bluemix
================================================================================

WordPress is an open source content management system (CMS) that is popular with both businesses and bloggers.

WordPress is extendable and customizable through themes, plugins, and templates that make it easy to transform the site to meet your exact needs. This boilerplate lets you quickly get your own WordPress website up and running on Bluemix™. When you go to the Bluemix catalog and deploy the boilerplate, you have the default WordPress application that you get from their website, along with services like IBM Object Storage and Sendgrid to help get you started.

___

##Deploy This Yourself##

Hit the button below to give it a shot. 

[![Deploy to Bluemix](https://hub.jazz.net/deploy/button.png)](https://bluemix.net/deploy?repository=https://hub.jazz.net/git/jstart/WordPress.on.Bluemix)

(Note: only one instance of the SendGrid service is allowed per space. If the deployment fails, that's probably why.)

Please note that this code is for developer education purposes only.   It is not intended to be used in a production environment. 

---
#Docs:

# About the App
This WordPress deploy includes everything you need to get up and running on Bluemix within minutes. IBM® Object Storage manages your media files and Sendgrid provides email integration. If you would like to further extend your WordPress site, you can download the application package and work with the code directly.
Finally, your database is provided by ClearDB, a MySQL database service provider.

 
###  Create a WordPress on Bluemix application:
1.  On the Bluemix dashboard, select CREATE AN APP and select the WordPress on Bluemix Starter.
2.  Provide your application name and host name.
3.  Select the service plans you want (default: free tier for all services).
4.  Click CREATE.  
<commit_msg>Added a better description to give credit to composer and johnpbloch<commit_after>WordPress on Bluemix
================================================================================

WordPress is an open source content management system (CMS) that is popular with 
both businesses and bloggers. WordPress is extendable and customizable through 
themes, plugins, and templates that make it easy to transform the site to meet 
your exact needs.

This boilerplate lets you quickly get your own WordPress website up and running 
on IBM Bluemix™. It uses the PHP buildpack and [composer](https://getcomposer.org) to install the 
[wordpress package from johnpbloch](https://packagist.org/packages/johnpbloch/wordpress) 
and configures the installation to use ClearDB (MySQL) for data, IBM Object Storage 
for media, and Sendgrid for email.

___

##Deploy This Yourself##

Hit the button below to give it a shot. 

[![Deploy to Bluemix](https://hub.jazz.net/deploy/button.png)](https://bluemix.net/deploy?repository=https://hub.jazz.net/git/jstart/WordPress.on.Bluemix)

(Note: only one instance of the SendGrid service is allowed per space. If the deployment fails, that's probably why.)

Please note that this code is for developer education purposes only.   It is not intended to be used in a production environment. 

---
#Docs:

# About the App
This WordPress deploy includes everything you need to get up and running on Bluemix within minutes. IBM® Object Storage manages your media files and Sendgrid provides email integration. If you would like to further extend your WordPress site, you can download the application package and work with the code directly.
Finally, your database is provided by ClearDB, a MySQL database service provider.

 
###  Create a WordPress on Bluemix application:
1.  On the Bluemix dashboard, select CREATE AN APP and select the WordPress on Bluemix Starter.
2.  Provide your application name and host name.
3.  Select the service plans you want (default: free tier for all services).
4.  Click CREATE.  
Rafe Foreman is the Douglas R. Stripp Dean’s Distinguished Professorship of Law and Director of Advocacy at UMKC School of Law. His passion, however, is not for honors or titles. Foreman’s dedication to the field of advocacy is fed by a passion to give those without a voice the tools and platform that they need. This dedication led to a $1.4 million gift from the Kemper Family Foundations to expand the Advocacy Program’s reach for UMKC, its students and beyond.
Foreman is confident that even those who feel they do not have a gift for advocacy or see themselves as litigators benefit from the advocacy program. As the director of advocacy and the coach of the Trial Advocacy teams, he sees students with varying backgrounds and a wide spectrum of skills.
The law school encourages first year students to compete in 1L Last Team Standing, a competition that allows first year law students to try a case. Foreman teaches his students to focus. He encourages them to stop comparing themselves to others but instead to concentrate on being an advocate for the position at hand.
Donor Bebe Kemper caught Foreman’s fever. Her father, Douglas Stripp, for whom the professorship and chair are named, was a clerk for U.S. Supreme Court Justice Charles Evan Whittaker. Stripp mentored young attorneys in trial advocacy. Kemper attended Foreman’s class and liked what she saw.
The Kemper Family Foundations’ $1.4 million gift has enabled the law school to increase the Stripp Endowed Professorship from an endowment to a chair and provide two Advocacy Fellows each year for five years.
Broader recognition preceded the Kempers’ gift. The Advocacy Program was ranked 12th by American National Jurist Magazine and most recently ranked 21st by U.S. News and World Report.There is one area of procurement spend that many schools are extremely wary of – oil. It’s hardly surprising bearing in mind the complex and volatile nature of pricing. Supplier pricing models include Platts daily lagged, Platts weekly lagged, spot, open book and so it goes on. As a result ensuring you are comparing “like for like” is a challenge in itself and one which many Bursars and Estate Managers simply don’t have the time to do. In addition security of supply is of paramount importance to schools and, in respect of oil purchases, it seems the phrase “better the devil you know” is adopted by most. As a result an area which is often a significant spend (sometimes second only to wages) tends to get overlooked.
Minerva has recently completed a project for a consortium of schools which has resulted in reasonable savings (between 3% – 14%) for some, but not all, of them. The main reason savings were not more significant is down to the fact that the bulk of the price is not determined by the wholesaler or the distributor but by the oil producers. As a result the only part of the price which can be ‘negotiated’ is the profit margin and load premia. As wholesalers/distributors work on a high volume/low margin business model there really isn’t that much left for discussion! That said, several schools made £000′s in savings as a result of the project and it’s still an area which should be actively reviewed especially where it’s a significant annual spend.
In addition to the savings identified in immediate pricing it’s also worth mentioning that contracts have been negotiated for ‘fixed forward’ pricing too. There is a continuing upward trajectory on pricing and so a strategic decision to fix could well be a good one. It’s important to choose when you do that though – you’ll note from the graph, which covers only a 12 month period, that small upward spikes or decreases in prices are apparent and could make a significant difference to the fixed price you negotiate.
So, if the bulk of the price is determined by the oil producers what influences their pricing? I recently had the opportunity to participate in a Webinar run by Platts* which gave an excellent overview of the Global